Upstream parts of omnibox.
[chromium-blink-merge.git] / extensions / browser / process_manager_observer.h
blob413a34ef3a93781d6cf9ae7c64f1cb76a3c3876d
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 extensions {
11 class Extension;
13 class ProcessManagerObserver {
14 public:
15 // Called immediately after an extension background host is started.
16 virtual void OnBackgroundHostStartup(const Extension* extension) {}
18 // Called immediately after the extension background host is destroyed.
19 virtual void OnBackgroundHostClose(const std::string& extension_id) {}
22 } // namespace extensions
24 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_OBSERVER_H_