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: chrome/browser/profiles/profile_impl.cc

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 GetExtensionSpecialStoragePolicy(), 1258 GetExtensionSpecialStoragePolicy(),
1259 quota_manager_->proxy()); 1259 quota_manager_->proxy());
1260 db_tracker_ = new webkit_database::DatabaseTracker( 1260 db_tracker_ = new webkit_database::DatabaseTracker(
1261 GetPath(), IsOffTheRecord(), clear_local_state_on_exit_, 1261 GetPath(), IsOffTheRecord(), clear_local_state_on_exit_,
1262 GetExtensionSpecialStoragePolicy(), 1262 GetExtensionSpecialStoragePolicy(),
1263 quota_manager_->proxy(), 1263 quota_manager_->proxy(),
1264 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 1264 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
1265 webkit_context_ = new WebKitContext( 1265 webkit_context_ = new WebKitContext(
1266 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), 1266 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(),
1267 clear_local_state_on_exit_, quota_manager_->proxy(), 1267 clear_local_state_on_exit_, quota_manager_->proxy(),
1268 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); 1268 BrowserThread::GetMessageLoopProxyForThread(
1269 BrowserThread::WEBKIT_DEPRECATED));
1269 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); 1270 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy());
1270 BrowserThread::PostTask( 1271 BrowserThread::PostTask(
1271 BrowserThread::IO, FROM_HERE, 1272 BrowserThread::IO, FROM_HERE,
1272 base::Bind(&ChromeAppCacheService::InitializeOnIOThread, 1273 base::Bind(&ChromeAppCacheService::InitializeOnIOThread,
1273 appcache_service_.get(), 1274 appcache_service_.get(),
1274 IsOffTheRecord() 1275 IsOffTheRecord()
1275 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), 1276 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
1276 &GetResourceContext(), 1277 &GetResourceContext(),
1277 make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); 1278 make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
1278 } 1279 }
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 FilePath* cache_path, 1672 FilePath* cache_path,
1672 int* max_size) { 1673 int* max_size) {
1673 DCHECK(cache_path); 1674 DCHECK(cache_path);
1674 DCHECK(max_size); 1675 DCHECK(max_size);
1675 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1676 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1676 if (!path.empty()) 1677 if (!path.empty())
1677 *cache_path = path; 1678 *cache_path = path;
1678 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1679 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1679 prefs_->GetInteger(prefs::kDiskCacheSize); 1680 prefs_->GetInteger(prefs::kDiskCacheSize);
1680 } 1681 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698