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.
21 virtual void OnBackgroundHostStartup(const Extension
* extension
) {}
23 // Called immediately after an ExtensionHost for an extension with a lazy
24 // background page is created.
25 virtual void OnBackgroundHostCreated(ExtensionHost
* host
) {}
27 // Called immediately after the extension background host is destroyed.
28 virtual void OnBackgroundHostClose(const std::string
& extension_id
) {}
30 virtual void OnExtensionFrameRegistered(
31 const std::string
& extension_id
,
32 content::RenderFrameHost
* render_frame_host
) {}
34 virtual void OnExtensionFrameUnregistered(
35 const std::string
& extension_id
,
36 content::RenderFrameHost
* render_frame_host
) {}
39 } // namespace extensions
41 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_