| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 virtual void ResourceDispatcherHostCreated() {} | 527 virtual void ResourceDispatcherHostCreated() {} |
| 528 | 528 |
| 529 // Allows the embedder to return a delegate for the SpeechRecognitionManager. | 529 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
| 530 // The delegate will be owned by the manager. It's valid to return nullptr. | 530 // The delegate will be owned by the manager. It's valid to return nullptr. |
| 531 virtual SpeechRecognitionManagerDelegate* | 531 virtual SpeechRecognitionManagerDelegate* |
| 532 CreateSpeechRecognitionManagerDelegate(); | 532 CreateSpeechRecognitionManagerDelegate(); |
| 533 | 533 |
| 534 // Getters for common objects. | 534 // Getters for common objects. |
| 535 virtual net::NetLog* GetNetLog(); | 535 virtual net::NetLog* GetNetLog(); |
| 536 | 536 |
| 537 // Returns true if fast shutdown is possible. | |
| 538 virtual bool IsFastShutdownPossible(); | |
| 539 | |
| 540 // Called by WebContents to override the WebKit preferences that are used by | 537 // Called by WebContents to override the WebKit preferences that are used by |
| 541 // the renderer. The content layer will add its own settings, and then it's up | 538 // the renderer. The content layer will add its own settings, and then it's up |
| 542 // to the embedder to update it if it wants. | 539 // to the embedder to update it if it wants. |
| 543 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 540 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
| 544 WebPreferences* prefs) {} | 541 WebPreferences* prefs) {} |
| 545 | 542 |
| 546 // Notifies that BrowserURLHandler has been created, so that the embedder can | 543 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 547 // optionally add their own handlers. | 544 // optionally add their own handlers. |
| 548 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 545 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 549 | 546 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 779 // implementation. Return nullptr to disable external surface video. | 776 // implementation. Return nullptr to disable external surface video. |
| 780 virtual ExternalVideoSurfaceContainer* | 777 virtual ExternalVideoSurfaceContainer* |
| 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 782 #endif | 779 #endif |
| 783 }; | 780 }; |
| 784 | 781 |
| 785 } // namespace content | 782 } // namespace content |
| 786 | 783 |
| 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |