OLD | NEW |
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 Loading... |
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 |
OLD | NEW |