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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_
11 class RenderFrameHost
;
14 namespace extensions
{
18 class ProcessManagerObserver
{
20 // Called immediately after an extension background host is started. This
21 // corresponds with the loading of background hosts immediately after profile
23 virtual void OnBackgroundHostStartup(const Extension
* extension
) {}
25 // Called immediately after an ExtensionHost for an extension is created.
26 // This corresponds with any time ProcessManager::OnBackgroundHostCreated is
28 virtual void OnBackgroundHostCreated(ExtensionHost
* host
) {}
30 // Called immediately after the extension background host is destroyed.
31 virtual void OnBackgroundHostClose(const std::string
& extension_id
) {}
33 virtual void OnExtensionFrameRegistered(
34 const std::string
& extension_id
,
35 content::RenderFrameHost
* render_frame_host
) {}
37 virtual void OnExtensionFrameUnregistered(
38 const std::string
& extension_id
,
39 content::RenderFrameHost
* render_frame_host
) {}
42 } // namespace extensions
44 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_