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

Side by Side Diff: extensions/browser/process_manager_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: Cleanup + remove DCHECK Created 5 years 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
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | extensions/common/view_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROCESS_MANAGER_OBSERVER_H_ 5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace content { 10 namespace content {
(...skipping 12 matching lines...) Expand all
23 virtual void OnBackgroundHostStartup(const Extension* extension) {} 23 virtual void OnBackgroundHostStartup(const Extension* extension) {}
24 24
25 // Called immediately after an ExtensionHost for an extension is created. 25 // Called immediately after an ExtensionHost for an extension is created.
26 // This corresponds with any time ProcessManager::OnBackgroundHostCreated is 26 // This corresponds with any time ProcessManager::OnBackgroundHostCreated is
27 // called. 27 // called.
28 virtual void OnBackgroundHostCreated(ExtensionHost* host) {} 28 virtual void OnBackgroundHostCreated(ExtensionHost* host) {}
29 29
30 // Called immediately after the extension background host is destroyed. 30 // Called immediately after the extension background host is destroyed.
31 virtual void OnBackgroundHostClose(const std::string& extension_id) {} 31 virtual void OnBackgroundHostClose(const std::string& extension_id) {}
32 32
33 // Called when a RenderFrameHost has been registered in an extension process.
33 virtual void OnExtensionFrameRegistered( 34 virtual void OnExtensionFrameRegistered(
34 const std::string& extension_id, 35 const std::string& extension_id,
35 content::RenderFrameHost* render_frame_host) {} 36 content::RenderFrameHost* render_frame_host) {}
36 37
38 // Called when a RenderFrameHost is no longer part of an extension process.
37 virtual void OnExtensionFrameUnregistered( 39 virtual void OnExtensionFrameUnregistered(
38 const std::string& extension_id, 40 const std::string& extension_id,
39 content::RenderFrameHost* render_frame_host) {} 41 content::RenderFrameHost* render_frame_host) {}
42
43 // Called when a RenderFrameHost was navigated to another page within the
44 // extension process.
45 virtual void OnExtensionFrameNavigated(
46 const std::string& extension_id,
47 content::RenderFrameHost* render_frame_host) {}
40 }; 48 };
41 49
42 } // namespace extensions 50 } // namespace extensions
43 51
44 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_ 52 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | extensions/common/view_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698