Update V8 to version 4.6.55.
[chromium-blink-merge.git] / extensions / browser / process_manager_observer.h
blob93c119f5a3c987894e569d98caf99bbfce3863ea
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.
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_