OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |