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

Side by Side Diff: content/shell/shell_browser_context.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
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB), 241 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
242 NULL); 242 NULL);
243 243
244 file_system_context_ = CreateFileSystemContext( 244 file_system_context_ = CreateFileSystemContext(
245 GetPath(), IsOffTheRecord(), NULL, quota_manager_->proxy()); 245 GetPath(), IsOffTheRecord(), NULL, quota_manager_->proxy());
246 db_tracker_ = new webkit_database::DatabaseTracker( 246 db_tracker_ = new webkit_database::DatabaseTracker(
247 GetPath(), IsOffTheRecord(), false, NULL, quota_manager_->proxy(), 247 GetPath(), IsOffTheRecord(), false, NULL, quota_manager_->proxy(),
248 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 248 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
249 webkit_context_ = new WebKitContext( 249 webkit_context_ = new WebKitContext(
250 IsOffTheRecord(), GetPath(), NULL, false, quota_manager_->proxy(), 250 IsOffTheRecord(), GetPath(), NULL, false, quota_manager_->proxy(),
251 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); 251 BrowserThread::GetMessageLoopProxyForThread(
252 BrowserThread::WEBKIT_DEPRECATED));
252 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); 253 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy());
253 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; 254 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy;
254 BrowserThread::PostTask( 255 BrowserThread::PostTask(
255 BrowserThread::IO, FROM_HERE, 256 BrowserThread::IO, FROM_HERE,
256 base::Bind( 257 base::Bind(
257 &ChromeAppCacheService::InitializeOnIOThread, 258 &ChromeAppCacheService::InitializeOnIOThread,
258 appcache_service_.get(), 259 appcache_service_.get(),
259 IsOffTheRecord() 260 IsOffTheRecord()
260 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")), 261 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")),
261 &GetResourceContext(), 262 &GetResourceContext(),
262 special_storage_policy)); 263 special_storage_policy));
263 } 264 }
264 265
265 } // namespace content 266 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698