| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
| 15 #include "content/public/common/media_stream_request.h" | 15 #include "content/public/common/media_stream_request.h" |
| 16 #include "content/public/common/window_container_type.h" | 16 #include "content/public/common/window_container_type.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 18 | 18 |
| 19 class CommandLine; | 19 class CommandLine; |
| 20 class FilePath; | 20 class FilePath; |
| 21 class GURL; | 21 class GURL; |
| 22 class PluginProcessHost; | 22 class PluginProcessHost; |
| 23 class ResourceDispatcherHost; | 23 class ResourceDispatcherHost; |
| 24 class SkBitmap; | 24 class SkBitmap; |
| 25 |
| 26 namespace webkit_glue { |
| 25 struct WebPreferences; | 27 struct WebPreferences; |
| 28 } |
| 26 | 29 |
| 27 namespace content { | 30 namespace content { |
| 28 class AccessTokenStore; | 31 class AccessTokenStore; |
| 29 class BrowserMainParts; | 32 class BrowserMainParts; |
| 30 class BrowserURLHandler; | 33 class BrowserURLHandler; |
| 31 class RenderProcessHost; | 34 class RenderProcessHost; |
| 32 class SiteInstance; | 35 class SiteInstance; |
| 33 class SpeechRecognitionManagerDelegate; | 36 class SpeechRecognitionManagerDelegate; |
| 34 class WebContents; | 37 class WebContents; |
| 35 class WebContentsView; | 38 class WebContentsView; |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 virtual AccessTokenStore* CreateAccessTokenStore() = 0; | 373 virtual AccessTokenStore* CreateAccessTokenStore() = 0; |
| 371 | 374 |
| 372 // Returns true if fast shutdown is possible. | 375 // Returns true if fast shutdown is possible. |
| 373 virtual bool IsFastShutdownPossible() = 0; | 376 virtual bool IsFastShutdownPossible() = 0; |
| 374 | 377 |
| 375 // Called by WebContents to override the WebKit preferences that are used by | 378 // Called by WebContents to override the WebKit preferences that are used by |
| 376 // the renderer. The content layer will add its own settings, and then it's up | 379 // the renderer. The content layer will add its own settings, and then it's up |
| 377 // to the embedder to update it if it wants. | 380 // to the embedder to update it if it wants. |
| 378 virtual void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, | 381 virtual void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, |
| 379 const GURL& url, | 382 const GURL& url, |
| 380 WebPreferences* prefs) = 0; | 383 webkit_glue::WebPreferences* prefs) = 0; |
| 381 | 384 |
| 382 // Inspector setting was changed and should be persisted. | 385 // Inspector setting was changed and should be persisted. |
| 383 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, | 386 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, |
| 384 const std::string& key, | 387 const std::string& key, |
| 385 const std::string& value) = 0; | 388 const std::string& value) = 0; |
| 386 | 389 |
| 387 // Clear the Inspector settings. | 390 // Clear the Inspector settings. |
| 388 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) = 0; | 391 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) = 0; |
| 389 | 392 |
| 390 // Notifies that BrowserURLHandler has been created, so that the embedder can | 393 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // This is called on a worker thread. | 428 // This is called on a worker thread. |
| 426 virtual | 429 virtual |
| 427 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 430 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 428 const GURL& url) = 0; | 431 const GURL& url) = 0; |
| 429 #endif | 432 #endif |
| 430 }; | 433 }; |
| 431 | 434 |
| 432 } // namespace content | 435 } // namespace content |
| 433 | 436 |
| 434 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 437 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |