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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Returns the speech input preferences. SpeechRecognitionPreferences is a 113 // Returns the speech input preferences. SpeechRecognitionPreferences is a
114 // ref counted class, so callers should take a reference if needed. 114 // ref counted class, so callers should take a reference if needed.
115 virtual SpeechRecognitionPreferences* GetSpeechRecognitionPreferences() = 0; 115 virtual SpeechRecognitionPreferences* GetSpeechRecognitionPreferences() = 0;
116 116
117 // Returns true if the last time this context was open it was exited cleanly. 117 // Returns true if the last time this context was open it was exited cleanly.
118 // This doesn't belong here; http://crbug.com/90737 118 // This doesn't belong here; http://crbug.com/90737
119 virtual bool DidLastSessionExitCleanly() = 0; 119 virtual bool DidLastSessionExitCleanly() = 0;
120 120
121 // Returns a special storage policy implementation, or NULL. 121 // Returns a special storage policy implementation, or NULL.
122 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; 122 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
123
124 // Returns true if the sessionStorage should be backed on disk. TODO(marja):
125 // Remove this when the "session storage on disk" implementation has
126 // stabilized.
127 virtual bool ShouldSaveSessionStorageOnDisk() = 0;
michaeln 2012/06/05 01:41:07 There's a bunch of indirection with 'should save'
marja 2012/06/06 13:37:10 Done. The flag is in DOMStorageContextImpl ctor.
michaeln 2012/06/08 01:04:20 Drat, I think i may have given you a bum steer aro
123 }; 128 };
124 129
125 } // namespace content 130 } // namespace content
126 131
127 #if defined(COMPILER_GCC) 132 #if defined(COMPILER_GCC)
128 namespace BASE_HASH_NAMESPACE { 133 namespace BASE_HASH_NAMESPACE {
129 134
130 template<> 135 template<>
131 struct hash<content::BrowserContext*> { 136 struct hash<content::BrowserContext*> {
132 std::size_t operator()(content::BrowserContext* const& p) const { 137 std::size_t operator()(content::BrowserContext* const& p) const {
133 return reinterpret_cast<std::size_t>(p); 138 return reinterpret_cast<std::size_t>(p);
134 } 139 }
135 }; 140 };
136 141
137 } // namespace BASE_HASH_NAMESPACE 142 } // namespace BASE_HASH_NAMESPACE
138 #endif 143 #endif
139 144
140 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 145 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698