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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1274763003: Initialize GPU shader disk cache on brower thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address content_unittests failure on Android 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 } 2257 }
2258 2258
2259 base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { 2259 base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() {
2260 return DownloadPrefs::GetDefaultDownloadDirectory(); 2260 return DownloadPrefs::GetDefaultDownloadDirectory();
2261 } 2261 }
2262 2262
2263 std::string ChromeContentBrowserClient::GetDefaultDownloadName() { 2263 std::string ChromeContentBrowserClient::GetDefaultDownloadName() {
2264 return l10n_util::GetStringUTF8(IDS_DEFAULT_DOWNLOAD_FILENAME); 2264 return l10n_util::GetStringUTF8(IDS_DEFAULT_DOWNLOAD_FILENAME);
2265 } 2265 }
2266 2266
2267 base::FilePath ChromeContentBrowserClient::GetShaderDiskCacheDirectory() {
2268 base::FilePath user_data_dir;
2269 PathService::Get(DIR_USER_DATA, &user_data_dir);
2270 DCHECK(!user_data_dir.empty());
2271 return user_data_dir.Append(FILE_PATH_LITERAL("ShaderCache"));
2272 }
2273
2267 void ChromeContentBrowserClient::DidCreatePpapiPlugin( 2274 void ChromeContentBrowserClient::DidCreatePpapiPlugin(
2268 content::BrowserPpapiHost* browser_host) { 2275 content::BrowserPpapiHost* browser_host) {
2269 #if defined(ENABLE_PLUGINS) 2276 #if defined(ENABLE_PLUGINS)
2270 ChromeContentBrowserClientPluginsPart::DidCreatePpapiPlugin(browser_host); 2277 ChromeContentBrowserClientPluginsPart::DidCreatePpapiPlugin(browser_host);
2271 #endif 2278 #endif
2272 } 2279 }
2273 2280
2274 content::BrowserPpapiHost* 2281 content::BrowserPpapiHost*
2275 ChromeContentBrowserClient::GetExternalBrowserPpapiHost( 2282 ChromeContentBrowserClient::GetExternalBrowserPpapiHost(
2276 int plugin_process_id) { 2283 int plugin_process_id) {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 switches::kDisableWebRtcEncryption, 2619 switches::kDisableWebRtcEncryption,
2613 }; 2620 };
2614 to_command_line->CopySwitchesFrom(from_command_line, 2621 to_command_line->CopySwitchesFrom(from_command_line,
2615 kWebRtcDevSwitchNames, 2622 kWebRtcDevSwitchNames,
2616 arraysize(kWebRtcDevSwitchNames)); 2623 arraysize(kWebRtcDevSwitchNames));
2617 } 2624 }
2618 } 2625 }
2619 #endif // defined(ENABLE_WEBRTC) 2626 #endif // defined(ENABLE_WEBRTC)
2620 2627
2621 } // namespace chrome 2628 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/gpu/browser_gpu_channel_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698