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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 virtual void ClearCookies(RenderFrameHost* rfh) {} | 516 virtual void ClearCookies(RenderFrameHost* rfh) {} |
517 | 517 |
518 // Returns the default download directory. | 518 // Returns the default download directory. |
519 // This can be called on any thread. | 519 // This can be called on any thread. |
520 virtual base::FilePath GetDefaultDownloadDirectory(); | 520 virtual base::FilePath GetDefaultDownloadDirectory(); |
521 | 521 |
522 // Returns the default filename used in downloads when we have no idea what | 522 // Returns the default filename used in downloads when we have no idea what |
523 // else we should do with the file. | 523 // else we should do with the file. |
524 virtual std::string GetDefaultDownloadName(); | 524 virtual std::string GetDefaultDownloadName(); |
525 | 525 |
| 526 // Returns the path to the browser shader disk cache root. |
| 527 virtual base::FilePath GetShaderDiskCacheDirectory(); |
| 528 |
526 // Notification that a pepper plugin has just been spawned. This allows the | 529 // Notification that a pepper plugin has just been spawned. This allows the |
527 // embedder to add filters onto the host to implement interfaces. | 530 // embedder to add filters onto the host to implement interfaces. |
528 // This is called on the IO thread. | 531 // This is called on the IO thread. |
529 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 532 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
530 | 533 |
531 // Gets the host for an external out-of-process plugin. | 534 // Gets the host for an external out-of-process plugin. |
532 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost( | 535 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost( |
533 int plugin_child_id); | 536 int plugin_child_id); |
534 | 537 |
535 // Returns true if the socket operation specified by |params| is allowed from | 538 // Returns true if the socket operation specified by |params| is allowed from |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 688 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
686 // implementation. Return nullptr to disable external surface video. | 689 // implementation. Return nullptr to disable external surface video. |
687 virtual ExternalVideoSurfaceContainer* | 690 virtual ExternalVideoSurfaceContainer* |
688 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 691 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
689 #endif | 692 #endif |
690 }; | 693 }; |
691 | 694 |
692 } // namespace content | 695 } // namespace content |
693 | 696 |
694 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 697 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |