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

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

Issue 9695013: DOMStorageContextImpl that's implemented in terms of the new dom_storage classes. (Closed) Base URL: svn://chrome-svn/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 set_clear_local_state_on_exit(bool clear_local_state) { 108 void SetClearLocalState(bool clear_local_state);
109 clear_local_state_on_exit_ = clear_local_state;
110 }
111 109
112 // Disables the exit-time deletion for all data (also session-only data). 110 // Disables the exit-time deletion for all data (also session-only data).
113 void SaveSessionState() { 111 void SaveSessionState();
114 save_session_state_ = true;
115 }
116 112
117 void set_data_path_for_testing(const FilePath& data_path) { 113 void set_data_path_for_testing(const FilePath& data_path) {
118 data_path_ = data_path; 114 data_path_ = data_path;
119 } 115 }
120 116
121 private: 117 private:
122 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly); 118 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly);
123 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState); 119 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState);
124 120
125 // Get the local storage instance. The object is owned by this class. 121 // Get the local storage instance. The object is owned by this class.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 170
175 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 171 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
176 scoped_refptr<base::MessageLoopProxy> webkit_message_loop_; 172 scoped_refptr<base::MessageLoopProxy> webkit_message_loop_;
177 173
178 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); 174 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl);
179 }; 175 };
180 176
181 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND 177 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND
182 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_ 178 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_CONTEXT_IMPL_H_
183 179
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698