OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DOM_STORAGE_DOM_STORAGE_AREA_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_AREA_H_ |
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_AREA_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_AREA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include <memory> |
11 #include <string> | 12 #include <string> |
12 | 13 |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | |
18 #include "base/strings/nullable_string16.h" | 18 #include "base/strings/nullable_string16.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/common/dom_storage/dom_storage_types.h" | 21 #include "content/common/dom_storage/dom_storage_types.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 class DOMStorageDatabaseAdapter; | 26 class DOMStorageDatabaseAdapter; |
27 class DOMStorageMap; | 27 class DOMStorageMap; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void ShutdownInCommitSequence(); | 164 void ShutdownInCommitSequence(); |
165 | 165 |
166 static bool s_aggressive_flushing_enabled_; | 166 static bool s_aggressive_flushing_enabled_; |
167 | 167 |
168 int64_t namespace_id_; | 168 int64_t namespace_id_; |
169 std::string persistent_namespace_id_; | 169 std::string persistent_namespace_id_; |
170 GURL origin_; | 170 GURL origin_; |
171 base::FilePath directory_; | 171 base::FilePath directory_; |
172 scoped_refptr<DOMStorageTaskRunner> task_runner_; | 172 scoped_refptr<DOMStorageTaskRunner> task_runner_; |
173 scoped_refptr<DOMStorageMap> map_; | 173 scoped_refptr<DOMStorageMap> map_; |
174 scoped_ptr<DOMStorageDatabaseAdapter> backing_; | 174 std::unique_ptr<DOMStorageDatabaseAdapter> backing_; |
175 scoped_refptr<SessionStorageDatabase> session_storage_backing_; | 175 scoped_refptr<SessionStorageDatabase> session_storage_backing_; |
176 bool is_initial_import_done_; | 176 bool is_initial_import_done_; |
177 bool is_shutdown_; | 177 bool is_shutdown_; |
178 scoped_ptr<CommitBatch> commit_batch_; | 178 std::unique_ptr<CommitBatch> commit_batch_; |
179 int commit_batches_in_flight_; | 179 int commit_batches_in_flight_; |
180 base::TimeTicks start_time_; | 180 base::TimeTicks start_time_; |
181 RateLimiter data_rate_limiter_; | 181 RateLimiter data_rate_limiter_; |
182 RateLimiter commit_rate_limiter_; | 182 RateLimiter commit_rate_limiter_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(DOMStorageArea); | 184 DISALLOW_COPY_AND_ASSIGN(DOMStorageArea); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace content | 187 } // namespace content |
188 | 188 |
189 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_AREA_H_ | 189 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_AREA_H_ |
OLD | NEW |