| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 class BrowserPpapiHost; | 69 class BrowserPpapiHost; |
| 70 class BrowserURLHandler; | 70 class BrowserURLHandler; |
| 71 class MediaObserver; | 71 class MediaObserver; |
| 72 class QuotaPermissionContext; | 72 class QuotaPermissionContext; |
| 73 class RenderProcessHost; | 73 class RenderProcessHost; |
| 74 class RenderViewHost; | 74 class RenderViewHost; |
| 75 class RenderViewHostDelegateView; | 75 class RenderViewHostDelegateView; |
| 76 class ResourceContext; | 76 class ResourceContext; |
| 77 class SiteInstance; | 77 class SiteInstance; |
| 78 class SpeechRecognitionManagerDelegate; | 78 class SpeechRecognitionManagerDelegate; |
| 79 class TtsDispatcherHostDelegate; |
| 79 class WebContents; | 80 class WebContents; |
| 80 class WebContentsViewDelegate; | 81 class WebContentsViewDelegate; |
| 81 class WebContentsViewPort; | 82 class WebContentsViewPort; |
| 82 struct MainFunctionParams; | 83 struct MainFunctionParams; |
| 83 struct ShowDesktopNotificationHostMsgParams; | 84 struct ShowDesktopNotificationHostMsgParams; |
| 84 | 85 |
| 85 // Embedder API (or SPI) for participating in browser logic, to be implemented | 86 // Embedder API (or SPI) for participating in browser logic, to be implemented |
| 86 // by the client of the content browser. See ChromeContentBrowserClient for the | 87 // by the client of the content browser. See ChromeContentBrowserClient for the |
| 87 // principal implementation. The methods are assumed to be called on the UI | 88 // principal implementation. The methods are assumed to be called on the UI |
| 88 // thread unless otherwise specified. Use this "escape hatch" sparingly, to | 89 // thread unless otherwise specified. Use this "escape hatch" sparingly, to |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 | 422 |
| 422 // Notifies the embedder that the ResourceDispatcherHost has been created. | 423 // Notifies the embedder that the ResourceDispatcherHost has been created. |
| 423 // This is when it can optionally add a delegate. | 424 // This is when it can optionally add a delegate. |
| 424 virtual void ResourceDispatcherHostCreated() {} | 425 virtual void ResourceDispatcherHostCreated() {} |
| 425 | 426 |
| 426 // Allows the embedder to return a delegate for the SpeechRecognitionManager. | 427 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
| 427 // The delegate will be owned by the manager. It's valid to return NULL. | 428 // The delegate will be owned by the manager. It's valid to return NULL. |
| 428 virtual SpeechRecognitionManagerDelegate* | 429 virtual SpeechRecognitionManagerDelegate* |
| 429 GetSpeechRecognitionManagerDelegate(); | 430 GetSpeechRecognitionManagerDelegate(); |
| 430 | 431 |
| 432 // Allows the embedder to return a delegate for the TtsDispatcherHost. |
| 433 // The delegate will be owned by the dispatcher. It's valid to return NULL. |
| 434 virtual TtsDispatcherHostDelegate* GetTtsDispatcherHostDelegate(); |
| 435 |
| 431 // Getters for common objects. | 436 // Getters for common objects. |
| 432 virtual net::NetLog* GetNetLog(); | 437 virtual net::NetLog* GetNetLog(); |
| 433 | 438 |
| 434 // Creates a new AccessTokenStore for gelocation. | 439 // Creates a new AccessTokenStore for gelocation. |
| 435 virtual AccessTokenStore* CreateAccessTokenStore(); | 440 virtual AccessTokenStore* CreateAccessTokenStore(); |
| 436 | 441 |
| 437 // Returns true if fast shutdown is possible. | 442 // Returns true if fast shutdown is possible. |
| 438 virtual bool IsFastShutdownPossible(); | 443 virtual bool IsFastShutdownPossible(); |
| 439 | 444 |
| 440 // Called by WebContents to override the WebKit preferences that are used by | 445 // Called by WebContents to override the WebKit preferences that are used by |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // This is called on a worker thread. | 516 // This is called on a worker thread. |
| 512 virtual | 517 virtual |
| 513 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 518 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 514 const GURL& url); | 519 const GURL& url); |
| 515 #endif | 520 #endif |
| 516 }; | 521 }; |
| 517 | 522 |
| 518 } // namespace content | 523 } // namespace content |
| 519 | 524 |
| 520 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 525 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |