blob: 7af1ee96d5e5eb3b95fdbc27eb95cbbde94f6644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSION_WEB_CONTENTS_OBSERVER_QT_H_
#define EXTENSION_WEB_CONTENTS_OBSERVER_QT_H_
#include "content/public/browser/web_contents_user_data.h"
#include "extensions/browser/extension_web_contents_observer.h"
namespace extensions {
class ExtensionWebContentsObserverQt
: public ExtensionWebContentsObserver
, public content::WebContentsUserData<ExtensionWebContentsObserverQt>
{
public:
explicit ExtensionWebContentsObserverQt(content::WebContents *web_contents);
~ExtensionWebContentsObserverQt() override;
static void CreateForWebContents(content::WebContents *web_contents);
// content::WebContentsObserver overrides.
void RenderFrameCreated(content::RenderFrameHost *render_frame_host) override;
void RenderViewReady() override;
private:
friend class content::WebContentsUserData<ExtensionWebContentsObserverQt>;
WEB_CONTENTS_USER_DATA_KEY_DECL();
};
} // namespace extensions
#endif // EXTENSION_WEB_CONTENTS_OBSERVER_QT_H_
|