Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1274763003: Initialize GPU shader disk cache on brower thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With static init method Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 virtual void ClearCookies(RenderFrameHost* rfh) {} 507 virtual void ClearCookies(RenderFrameHost* rfh) {}
508 508
509 // Returns the default download directory. 509 // Returns the default download directory.
510 // This can be called on any thread. 510 // This can be called on any thread.
511 virtual base::FilePath GetDefaultDownloadDirectory(); 511 virtual base::FilePath GetDefaultDownloadDirectory();
512 512
513 // Returns the default filename used in downloads when we have no idea what 513 // Returns the default filename used in downloads when we have no idea what
514 // else we should do with the file. 514 // else we should do with the file.
515 virtual std::string GetDefaultDownloadName(); 515 virtual std::string GetDefaultDownloadName();
516 516
517 // Returns the path to the browser shader disk cache root.
jam 2015/08/07 20:41:04 nit: please make chrome return a path that include
Jamie Madill 2015/08/10 17:18:00 Done.
518 virtual base::FilePath GetShaderDiskCacheDirectory();
519
517 // Notification that a pepper plugin has just been spawned. This allows the 520 // Notification that a pepper plugin has just been spawned. This allows the
518 // embedder to add filters onto the host to implement interfaces. 521 // embedder to add filters onto the host to implement interfaces.
519 // This is called on the IO thread. 522 // This is called on the IO thread.
520 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} 523 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {}
521 524
522 // Gets the host for an external out-of-process plugin. 525 // Gets the host for an external out-of-process plugin.
523 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost( 526 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost(
524 int plugin_child_id); 527 int plugin_child_id);
525 528
526 // Returns true if the socket operation specified by |params| is allowed from 529 // Returns true if the socket operation specified by |params| is allowed from
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 679 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
677 // implementation. Return nullptr to disable external surface video. 680 // implementation. Return nullptr to disable external surface video.
678 virtual ExternalVideoSurfaceContainer* 681 virtual ExternalVideoSurfaceContainer*
679 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 682 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
680 #endif 683 #endif
681 }; 684 };
682 685
683 } // namespace content 686 } // namespace content
684 687
685 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 688 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698