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

Side by Side Diff: content/public/browser/browser_context.h

Issue 10850010: Make session restore understand that tabs have multiple SessionStorageNamespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unittest using jam's new PRE_ method 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
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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 static content::DOMStorageContext* GetDOMStorageContextByPartitionId( 56 static content::DOMStorageContext* GetDOMStorageContextByPartitionId(
57 BrowserContext* browser_context, const std::string& partition_id); 57 BrowserContext* browser_context, const std::string& partition_id);
58 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context); 58 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
59 static webkit_database::DatabaseTracker* GetDatabaseTracker( 59 static webkit_database::DatabaseTracker* GetDatabaseTracker(
60 BrowserContext* browser_context); 60 BrowserContext* browser_context);
61 static appcache::AppCacheService* GetAppCacheService( 61 static appcache::AppCacheService* GetAppCacheService(
62 BrowserContext* browser_context); 62 BrowserContext* browser_context);
63 static fileapi::FileSystemContext* GetFileSystemContext( 63 static fileapi::FileSystemContext* GetFileSystemContext(
64 BrowserContext* browser_context); 64 BrowserContext* browser_context);
65 65
66 // TODO(ajwong): Make StoragePartition a public interface and move this
67 // function over there:
68 static bool IsValidStoragePartitionId(BrowserContext* browser_context,
69 const std::string& partition_id);
70
66 // Ensures that the corresponding ResourceContext is initialized. Normally the 71 // Ensures that the corresponding ResourceContext is initialized. Normally the
67 // BrowserContext initializs the corresponding getters when its objects are 72 // BrowserContext initializs the corresponding getters when its objects are
68 // created, but if the embedder wants to pass the ResourceContext to another 73 // created, but if the embedder wants to pass the ResourceContext to another
69 // thread before they use BrowserContext, they should call this to make sure 74 // thread before they use BrowserContext, they should call this to make sure
70 // that the ResourceContext is ready. 75 // that the ResourceContext is ready.
71 static void EnsureResourceContextInitialized(BrowserContext* browser_context); 76 static void EnsureResourceContextInitialized(BrowserContext* browser_context);
72 77
73 // Tells the HTML5 objects on this context to persist their session state 78 // Tells the HTML5 objects on this context to persist their session state
74 // across the next restart. 79 // across the next restart.
75 static void SaveSessionState(BrowserContext* browser_context); 80 static void SaveSessionState(BrowserContext* browser_context);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 struct hash<content::BrowserContext*> { 143 struct hash<content::BrowserContext*> {
139 std::size_t operator()(content::BrowserContext* const& p) const { 144 std::size_t operator()(content::BrowserContext* const& p) const {
140 return reinterpret_cast<std::size_t>(p); 145 return reinterpret_cast<std::size_t>(p);
141 } 146 }
142 }; 147 };
143 148
144 } // namespace BASE_HASH_NAMESPACE 149 } // namespace BASE_HASH_NAMESPACE
145 #endif 150 #endif
146 151
147 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 152 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698