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_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_TEST_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 #include "extensions/browser/updater/extension_cache.h" | 10 #include "extensions/browser/updater/extension_cache.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 87 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
88 content::BrowserContext* context) const override; | 88 content::BrowserContext* context) const override; |
89 const ComponentExtensionResourceManager* | 89 const ComponentExtensionResourceManager* |
90 GetComponentExtensionResourceManager() override; | 90 GetComponentExtensionResourceManager() override; |
91 void BroadcastEventToRenderers(const std::string& event_name, | 91 void BroadcastEventToRenderers(const std::string& event_name, |
92 scoped_ptr<base::ListValue> args) override; | 92 scoped_ptr<base::ListValue> args) override; |
93 net::NetLog* GetNetLog() override; | 93 net::NetLog* GetNetLog() override; |
94 ExtensionCache* GetExtensionCache() override; | 94 ExtensionCache* GetExtensionCache() override; |
95 bool IsBackgroundUpdateAllowed() override; | 95 bool IsBackgroundUpdateAllowed() override; |
96 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 96 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 97 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 98 content::WebContents* web_contents) override; |
97 | 99 |
98 private: | 100 private: |
99 content::BrowserContext* main_context_; // Not owned. | 101 content::BrowserContext* main_context_; // Not owned. |
100 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. | 102 content::BrowserContext* incognito_context_; // Not owned, defaults to NULL. |
101 | 103 |
102 // Not owned, defaults to NULL. | 104 // Not owned, defaults to NULL. |
103 ProcessManagerDelegate* process_manager_delegate_; | 105 ProcessManagerDelegate* process_manager_delegate_; |
104 | 106 |
105 // Not owned, defaults to NULL. | 107 // Not owned, defaults to NULL. |
106 ExtensionSystemProvider* extension_system_factory_; | 108 ExtensionSystemProvider* extension_system_factory_; |
107 | 109 |
108 scoped_ptr<ExtensionCache> extension_cache_; | 110 scoped_ptr<ExtensionCache> extension_cache_; |
109 | 111 |
110 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 112 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
111 }; | 113 }; |
112 | 114 |
113 } // namespace extensions | 115 } // namespace extensions |
114 | 116 |
115 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 117 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |