| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 | 12 |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 class ExtensionFunctionRegistry; |
| 14 class PrefService; | 15 class PrefService; |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class BrowserContext; | 18 class BrowserContext; |
| 18 class JavaScriptDialogManager; | 19 class JavaScriptDialogManager; |
| 19 class WebContents; | 20 class WebContents; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace extensions { | 23 namespace extensions { |
| 23 | 24 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | 121 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if |
| 121 // the embedder does not monitor extension API activity. | 122 // the embedder does not monitor extension API activity. |
| 122 virtual ApiActivityMonitor* GetApiActivityMonitor( | 123 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 123 content::BrowserContext* context) = 0; | 124 content::BrowserContext* context) = 0; |
| 124 | 125 |
| 125 // Returns the factory that provides an ExtensionSystem to be returned from | 126 // Returns the factory that provides an ExtensionSystem to be returned from |
| 126 // ExtensionSystem::Get. | 127 // ExtensionSystem::Get. |
| 127 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; | 128 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; |
| 128 | 129 |
| 130 // Registers extension functions not belonging to the core extensions APIs. |
| 131 virtual void RegisterAdditionalExtensionFunctions( |
| 132 ExtensionFunctionRegistry* registry) const = 0; |
| 133 |
| 129 // Returns the single instance of |this|. | 134 // Returns the single instance of |this|. |
| 130 static ExtensionsBrowserClient* Get(); | 135 static ExtensionsBrowserClient* Get(); |
| 131 | 136 |
| 132 // Initialize the single instance. | 137 // Initialize the single instance. |
| 133 static void Set(ExtensionsBrowserClient* client); | 138 static void Set(ExtensionsBrowserClient* client); |
| 134 }; | 139 }; |
| 135 | 140 |
| 136 } // namespace extensions | 141 } // namespace extensions |
| 137 | 142 |
| 138 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 143 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |