Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: extensions/browser/extension_web_contents_observer.h

Issue 1413853005: Track all extension frames in ProcessManager, inspect extensionoptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // ExtensionFunctionDispatcher::Delegate overrides. 53 // ExtensionFunctionDispatcher::Delegate overrides.
54 content::WebContents* GetAssociatedWebContents() const override; 54 content::WebContents* GetAssociatedWebContents() const override;
55 55
56 // content::WebContentsObserver overrides. 56 // content::WebContentsObserver overrides.
57 57
58 // A subclass should invoke this method to finish extension process setup. 58 // A subclass should invoke this method to finish extension process setup.
59 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 59 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
60 60
61 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; 61 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
62 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; 62 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override;
63 void RenderFrameHostChanged(content::RenderFrameHost* old_host,
64 content::RenderFrameHost* new_host) override;
63 65
64 // Subclasses should call this first before doing their own message handling. 66 // Subclasses should call this first before doing their own message handling.
65 bool OnMessageReceived(const IPC::Message& message, 67 bool OnMessageReceived(const IPC::Message& message,
66 content::RenderFrameHost* render_frame_host) override; 68 content::RenderFrameHost* render_frame_host) override;
67 69
68 // Per the documentation in WebContentsObserver, these two methods are invoked 70 // Per the documentation in WebContentsObserver, these two methods are invoked
69 // when a Pepper plugin instance is attached/detached in the page DOM. 71 // when a Pepper plugin instance is attached/detached in the page DOM.
70 void PepperInstanceCreated() override; 72 void PepperInstanceCreated() override;
71 void PepperInstanceDeleted() override; 73 void PepperInstanceDeleted() override;
72 74
(...skipping 28 matching lines...) Expand all
101 content::BrowserContext* browser_context_; 103 content::BrowserContext* browser_context_;
102 104
103 ExtensionFunctionDispatcher dispatcher_; 105 ExtensionFunctionDispatcher dispatcher_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver); 107 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver);
106 }; 108 };
107 109
108 } // namespace extensions 110 } // namespace extensions
109 111
110 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ 112 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698