OLD | NEW |
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 "content/browser/storage_partition_impl.h" | 5 #include "content/browser/storage_partition_impl.h" |
6 | 6 |
7 #include "content/browser/fileapi/browser_file_system_helper.h" | 7 #include "content/browser/fileapi/browser_file_system_helper.h" |
8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "webkit/database/database_tracker.h" | 10 #include "webkit/database/database_tracker.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 scoped_refptr<webkit_database::DatabaseTracker> database_tracker = | 74 scoped_refptr<webkit_database::DatabaseTracker> database_tracker = |
75 new webkit_database::DatabaseTracker( | 75 new webkit_database::DatabaseTracker( |
76 partition_path, context->IsOffTheRecord(), | 76 partition_path, context->IsOffTheRecord(), |
77 context->GetSpecialStoragePolicy(), quota_manager->proxy(), | 77 context->GetSpecialStoragePolicy(), quota_manager->proxy(), |
78 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 78 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
79 | 79 |
80 FilePath path = context->IsOffTheRecord() ? FilePath() : partition_path; | 80 FilePath path = context->IsOffTheRecord() ? FilePath() : partition_path; |
81 scoped_refptr<DOMStorageContextImpl> dom_storage_context = | 81 scoped_refptr<DOMStorageContextImpl> dom_storage_context = |
82 new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy()); | 82 new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy()); |
| 83 dom_storage_context->SetSaveSessionStorageOnDisk(); |
83 | 84 |
84 scoped_refptr<IndexedDBContextImpl> indexed_db_context = | 85 scoped_refptr<IndexedDBContextImpl> indexed_db_context = |
85 new IndexedDBContextImpl(path, context->GetSpecialStoragePolicy(), | 86 new IndexedDBContextImpl(path, context->GetSpecialStoragePolicy(), |
86 quota_manager->proxy(), | 87 quota_manager->proxy(), |
87 BrowserThread::GetMessageLoopProxyForThread( | 88 BrowserThread::GetMessageLoopProxyForThread( |
88 BrowserThread::WEBKIT_DEPRECATED)); | 89 BrowserThread::WEBKIT_DEPRECATED)); |
89 | 90 |
90 scoped_refptr<ChromeAppCacheService> appcache_service = | 91 scoped_refptr<ChromeAppCacheService> appcache_service = |
91 new ChromeAppCacheService(quota_manager->proxy()); | 92 new ChromeAppCacheService(quota_manager->proxy()); |
92 | 93 |
(...skipping 24 matching lines...) Expand all Loading... |
117 | 118 |
118 DOMStorageContextImpl* StoragePartitionImpl::GetDOMStorageContext() { | 119 DOMStorageContextImpl* StoragePartitionImpl::GetDOMStorageContext() { |
119 return dom_storage_context_; | 120 return dom_storage_context_; |
120 } | 121 } |
121 | 122 |
122 IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() { | 123 IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() { |
123 return indexed_db_context_; | 124 return indexed_db_context_; |
124 } | 125 } |
125 | 126 |
126 } // namespace content | 127 } // namespace content |
OLD | NEW |