| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 // Returns true if fast shutdown is possible. | 522 // Returns true if fast shutdown is possible. |
| 523 virtual bool IsFastShutdownPossible(); | 523 virtual bool IsFastShutdownPossible(); |
| 524 | 524 |
| 525 // Called by WebContents to override the WebKit preferences that are used by | 525 // Called by WebContents to override the WebKit preferences that are used by |
| 526 // the renderer. The content layer will add its own settings, and then it's up | 526 // the renderer. The content layer will add its own settings, and then it's up |
| 527 // to the embedder to update it if it wants. | 527 // to the embedder to update it if it wants. |
| 528 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 528 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
| 529 const GURL& url, | 529 const GURL& url, |
| 530 WebPreferences* prefs) {} | 530 WebPreferences* prefs) {} |
| 531 | 531 |
| 532 // Inspector setting was changed and should be persisted. | |
| 533 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | |
| 534 const std::string& key, | |
| 535 const std::string& value) {} | |
| 536 | |
| 537 // Notifies that BrowserURLHandler has been created, so that the embedder can | 532 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 538 // optionally add their own handlers. | 533 // optionally add their own handlers. |
| 539 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 534 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 540 | 535 |
| 541 // Clears browser cache. | 536 // Clears browser cache. |
| 542 virtual void ClearCache(RenderViewHost* rvh) {} | 537 virtual void ClearCache(RenderViewHost* rvh) {} |
| 543 | 538 |
| 544 // Clears browser cookies. | 539 // Clears browser cookies. |
| 545 virtual void ClearCookies(RenderViewHost* rvh) {} | 540 virtual void ClearCookies(RenderViewHost* rvh) {} |
| 546 | 541 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 654 // implementation. Return NULL to disable external surface video. | 649 // implementation. Return NULL to disable external surface video. |
| 655 virtual ExternalVideoSurfaceContainer* | 650 virtual ExternalVideoSurfaceContainer* |
| 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 657 #endif | 652 #endif |
| 658 }; | 653 }; |
| 659 | 654 |
| 660 } // namespace content | 655 } // namespace content |
| 661 | 656 |
| 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |