| 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 "chrome/browser/profiles/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_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/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 GetPath(), IsOffTheRecord(), | 613 GetPath(), IsOffTheRecord(), |
| 614 GetExtensionSpecialStoragePolicy(), | 614 GetExtensionSpecialStoragePolicy(), |
| 615 quota_manager_->proxy()); | 615 quota_manager_->proxy()); |
| 616 db_tracker_ = new webkit_database::DatabaseTracker( | 616 db_tracker_ = new webkit_database::DatabaseTracker( |
| 617 GetPath(), IsOffTheRecord(), false, GetExtensionSpecialStoragePolicy(), | 617 GetPath(), IsOffTheRecord(), false, GetExtensionSpecialStoragePolicy(), |
| 618 quota_manager_->proxy(), | 618 quota_manager_->proxy(), |
| 619 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 619 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
| 620 webkit_context_ = new WebKitContext( | 620 webkit_context_ = new WebKitContext( |
| 621 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), | 621 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), |
| 622 false, quota_manager_->proxy(), | 622 false, quota_manager_->proxy(), |
| 623 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 623 BrowserThread::GetMessageLoopProxyForThread( |
| 624 BrowserThread::WEBKIT_DEPRECATED)); |
| 624 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 625 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
| 625 BrowserThread::PostTask( | 626 BrowserThread::PostTask( |
| 626 BrowserThread::IO, FROM_HERE, | 627 BrowserThread::IO, FROM_HERE, |
| 627 base::Bind(&ChromeAppCacheService::InitializeOnIOThread, | 628 base::Bind(&ChromeAppCacheService::InitializeOnIOThread, |
| 628 appcache_service_.get(), | 629 appcache_service_.get(), |
| 629 IsOffTheRecord() | 630 IsOffTheRecord() |
| 630 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 631 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), |
| 631 &GetResourceContext(), | 632 &GetResourceContext(), |
| 632 make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); | 633 make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); |
| 633 } | 634 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 656 OffTheRecordProfileImpl* profile = NULL; | 657 OffTheRecordProfileImpl* profile = NULL; |
| 657 #if defined(OS_CHROMEOS) | 658 #if defined(OS_CHROMEOS) |
| 658 if (Profile::IsGuestSession()) | 659 if (Profile::IsGuestSession()) |
| 659 profile = new GuestSessionProfile(this); | 660 profile = new GuestSessionProfile(this); |
| 660 #endif | 661 #endif |
| 661 if (!profile) | 662 if (!profile) |
| 662 profile = new OffTheRecordProfileImpl(this); | 663 profile = new OffTheRecordProfileImpl(this); |
| 663 profile->Init(); | 664 profile->Init(); |
| 664 return profile; | 665 return profile; |
| 665 } | 666 } |
| OLD | NEW |