OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "extensions/browser/extensions_browser_client.h" | 9 #include "extensions/browser/extensions_browser_client.h" |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 68 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
69 virtual ApiActivityMonitor* GetApiActivityMonitor( | 69 virtual ApiActivityMonitor* GetApiActivityMonitor( |
70 content::BrowserContext* context) OVERRIDE; | 70 content::BrowserContext* context) OVERRIDE; |
71 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; | 71 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; |
72 virtual void RegisterExtensionFunctions( | 72 virtual void RegisterExtensionFunctions( |
73 ExtensionFunctionRegistry* registry) const OVERRIDE; | 73 ExtensionFunctionRegistry* registry) const OVERRIDE; |
74 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 74 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
75 content::BrowserContext* context) const OVERRIDE; | 75 content::BrowserContext* context) const OVERRIDE; |
76 virtual ComponentExtensionResourceManager* | 76 virtual ComponentExtensionResourceManager* |
77 GetComponentExtensionResourceManager() OVERRIDE; | 77 GetComponentExtensionResourceManager() OVERRIDE; |
| 78 virtual void BroadcastEventToRenderers( |
| 79 const std::string& event_name, |
| 80 scoped_ptr<base::ListValue> args) OVERRIDE; |
78 virtual net::NetLog* GetNetLog() OVERRIDE; | 81 virtual net::NetLog* GetNetLog() OVERRIDE; |
79 | 82 |
80 private: | 83 private: |
81 // The single BrowserContext for app_shell. Not owned. | 84 // The single BrowserContext for app_shell. Not owned. |
82 content::BrowserContext* browser_context_; | 85 content::BrowserContext* browser_context_; |
83 | 86 |
84 // Support for extension APIs. | 87 // Support for extension APIs. |
85 scoped_ptr<ExtensionsAPIClient> api_client_; | 88 scoped_ptr<ExtensionsAPIClient> api_client_; |
86 | 89 |
87 // The PrefService for |browser_context_|. | 90 // The PrefService for |browser_context_|. |
88 scoped_ptr<PrefService> prefs_; | 91 scoped_ptr<PrefService> prefs_; |
89 | 92 |
90 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 93 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
91 }; | 94 }; |
92 | 95 |
93 } // namespace extensions | 96 } // namespace extensions |
94 | 97 |
95 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 98 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |