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

Side by Side Diff: content/browser/in_process_webkit/dom_storage_context_impl.h

Issue 9726022: Revert 127573 - DOMStorageContextImpl that's implemented in terms of the new dom_storage classes. A… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 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 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Deletes all local storage files. 99 // Deletes all local storage files.
100 void DeleteAllLocalStorageFiles(); 100 void DeleteAllLocalStorageFiles();
101 101
102 // The local storage directory. 102 // The local storage directory.
103 static const FilePath::CharType kLocalStorageDirectory[]; 103 static const FilePath::CharType kLocalStorageDirectory[];
104 104
105 // The local storage file extension. 105 // The local storage file extension.
106 static const FilePath::CharType kLocalStorageExtension[]; 106 static const FilePath::CharType kLocalStorageExtension[];
107 107
108 void SetClearLocalState(bool clear_local_state); 108 void set_clear_local_state_on_exit(bool clear_local_state) {
109 clear_local_state_on_exit_ = clear_local_state;
110 }
109 111
110 // Disables the exit-time deletion for all data (also session-only data). 112 // Disables the exit-time deletion for all data (also session-only data).
111 void SaveSessionState(); 113 void SaveSessionState() {
114 save_session_state_ = true;
115 }
112 116
113 void set_data_path_for_testing(const FilePath& data_path) { 117 void set_data_path_for_testing(const FilePath& data_path) {
114 data_path_ = data_path; 118 data_path_ = data_path;
115 } 119 }
116 120
117 private: 121 private:
118 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly); 122 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly);
119 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState); 123 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState);
120 124
121 // Get the local storage instance. The object is owned by this class. 125 // Get the local storage instance. The object is owned by this class.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 174
171 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 175 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
172 scoped_refptr<base::MessageLoopProxy> webkit_message_loop_; 176 scoped_refptr<base::MessageLoopProxy> webkit_message_loop_;
173 177
174 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); 178 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl);
175 }; 179 };
176 180
177 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND 181 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND
178 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_ 182 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_
179 183
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698