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

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 10850010: Make session restore understand that tabs have multiple SessionStorageNamespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: attempt to fix unittsets. Created 8 years, 4 months 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/browser/browser_context.cc ('k') | content/public/browser/browser_context.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698