OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_old.h" | 11 #include "base/callback_old.h" |
12 #include "content/common/content_client.h" | 12 #include "content/common/content_client.h" |
13 #include "content/common/window_container_type.h" | 13 #include "content/common/window_container_type.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
15 | 15 |
| 16 class AccessTokenStore; |
16 class BrowserRenderProcessHost; | 17 class BrowserRenderProcessHost; |
17 class BrowserURLHandler; | 18 class BrowserURLHandler; |
18 class CommandLine; | 19 class CommandLine; |
19 class DevToolsManager; | 20 class DevToolsManager; |
20 class FilePath; | 21 class FilePath; |
21 class GURL; | 22 class GURL; |
22 class MHTMLGenerationManager; | 23 class MHTMLGenerationManager; |
23 class PluginProcessHost; | 24 class PluginProcessHost; |
24 class QuotaPermissionContext; | 25 class QuotaPermissionContext; |
25 class RenderViewHost; | 26 class RenderViewHost; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 virtual std::string GetWorkerProcessTitle( | 238 virtual std::string GetWorkerProcessTitle( |
238 const GURL& url, const content::ResourceContext& context) = 0; | 239 const GURL& url, const content::ResourceContext& context) = 0; |
239 | 240 |
240 // Getters for common objects. | 241 // Getters for common objects. |
241 virtual ResourceDispatcherHost* GetResourceDispatcherHost() = 0; | 242 virtual ResourceDispatcherHost* GetResourceDispatcherHost() = 0; |
242 virtual ui::Clipboard* GetClipboard() = 0; | 243 virtual ui::Clipboard* GetClipboard() = 0; |
243 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() = 0; | 244 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() = 0; |
244 virtual DevToolsManager* GetDevToolsManager() = 0; | 245 virtual DevToolsManager* GetDevToolsManager() = 0; |
245 virtual net::NetLog* GetNetLog() = 0; | 246 virtual net::NetLog* GetNetLog() = 0; |
246 | 247 |
| 248 // Creates a new AccessTokenStore for gelocation. |
| 249 virtual AccessTokenStore* CreateAccessTokenStore() = 0; |
| 250 |
247 // Returns true if fast shutdown is possible. | 251 // Returns true if fast shutdown is possible. |
248 virtual bool IsFastShutdownPossible() = 0; | 252 virtual bool IsFastShutdownPossible() = 0; |
249 | 253 |
250 // Returns the WebKit preferences that are used by the renderer. | 254 // Returns the WebKit preferences that are used by the renderer. |
251 virtual WebPreferences GetWebkitPrefs(BrowserContext* browser_context, | 255 virtual WebPreferences GetWebkitPrefs(BrowserContext* browser_context, |
252 bool is_web_ui) = 0; | 256 bool is_web_ui) = 0; |
253 | 257 |
254 // Inspector setting was changed and should be persisted. | 258 // Inspector setting was changed and should be persisted. |
255 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | 259 virtual void UpdateInspectorSetting(RenderViewHost* rvh, |
256 const std::string& key, | 260 const std::string& key, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 // This is called on a worker thread. | 292 // This is called on a worker thread. |
289 virtual | 293 virtual |
290 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 294 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
291 const GURL& url) = 0; | 295 const GURL& url) = 0; |
292 #endif | 296 #endif |
293 }; | 297 }; |
294 | 298 |
295 } // namespace content | 299 } // namespace content |
296 | 300 |
297 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 301 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |