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

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: nits, git cl format, fix error in ExtensionWebContentsObserver::GetExtensionFromFrame, exclude kGue… 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
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(
Devlin 2015/12/01 21:40:49 Am I just missing it? Where is this used?
robwu 2015/12/01 23:19:58 This will be used by https://codereview.chromium.o
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

Powered by Google App Engine
This is Rietveld 408576698