Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / extensions / browser / process_manager_observer.h
blob668b3df6cc2402c47188448a38a76d49a1fdd372
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_
8 #include <string>
10 namespace content {
11 class RenderFrameHost;
14 namespace extensions {
15 class Extension;
16 class ExtensionHost;
18 class ProcessManagerObserver {
19 public:
20 // Called immediately after an extension background host is started. This
21 // corresponds with the loading of background hosts immediately after profile
22 // startup.
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
27 // called.
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_