| 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 // Returns true if fast shutdown is possible. | 509 // Returns true if fast shutdown is possible. |
| 510 virtual bool IsFastShutdownPossible(); | 510 virtual bool IsFastShutdownPossible(); |
| 511 | 511 |
| 512 // Called by WebContents to override the WebKit preferences that are used by | 512 // Called by WebContents to override the WebKit preferences that are used by |
| 513 // the renderer. The content layer will add its own settings, and then it's up | 513 // the renderer. The content layer will add its own settings, and then it's up |
| 514 // to the embedder to update it if it wants. | 514 // to the embedder to update it if it wants. |
| 515 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 515 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
| 516 const GURL& url, | 516 const GURL& url, |
| 517 WebPreferences* prefs) {} | 517 WebPreferences* prefs) {} |
| 518 | 518 |
| 519 // Inspector setting was changed and should be persisted. | |
| 520 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | |
| 521 const std::string& key, | |
| 522 const std::string& value) {} | |
| 523 | |
| 524 // Notifies that BrowserURLHandler has been created, so that the embedder can | 519 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 525 // optionally add their own handlers. | 520 // optionally add their own handlers. |
| 526 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 521 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 527 | 522 |
| 528 // Clears browser cache. | 523 // Clears browser cache. |
| 529 virtual void ClearCache(RenderViewHost* rvh) {} | 524 virtual void ClearCache(RenderViewHost* rvh) {} |
| 530 | 525 |
| 531 // Clears browser cookies. | 526 // Clears browser cookies. |
| 532 virtual void ClearCookies(RenderViewHost* rvh) {} | 527 virtual void ClearCookies(RenderViewHost* rvh) {} |
| 533 | 528 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 635 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 641 // implementation. Return NULL to disable external surface video. | 636 // implementation. Return NULL to disable external surface video. |
| 642 virtual ExternalVideoSurfaceContainer* | 637 virtual ExternalVideoSurfaceContainer* |
| 643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 638 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 644 #endif | 639 #endif |
| 645 }; | 640 }; |
| 646 | 641 |
| 647 } // namespace content | 642 } // namespace content |
| 648 | 643 |
| 649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |