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 #include "content/browser/dom_storage/dom_storage_area.h" | 5 #include "content/browser/dom_storage/dom_storage_area.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/browser/dom_storage/dom_storage_namespace.h" | 13 #include "content/browser/dom_storage/dom_storage_namespace.h" |
14 #include "content/browser/dom_storage/dom_storage_task_runner.h" | 14 #include "content/browser/dom_storage/dom_storage_task_runner.h" |
15 #include "content/browser/dom_storage/local_storage_database_adapter.h" | 15 #include "content/browser/dom_storage/local_storage_database_adapter.h" |
16 #include "content/browser/dom_storage/session_storage_database.h" | 16 #include "content/browser/dom_storage/session_storage_database.h" |
17 #include "content/browser/dom_storage/session_storage_database_adapter.h" | 17 #include "content/browser/dom_storage/session_storage_database_adapter.h" |
18 #include "content/common/dom_storage/dom_storage_map.h" | 18 #include "content/common/dom_storage/dom_storage_map.h" |
19 #include "content/common/dom_storage/dom_storage_types.h" | 19 #include "content/common/dom_storage/dom_storage_types.h" |
20 #include "webkit/browser/database/database_util.h" | 20 #include "storage/browser/database/database_util.h" |
21 #include "webkit/common/database/database_identifier.h" | 21 #include "storage/common/database/database_identifier.h" |
22 #include "webkit/common/fileapi/file_system_util.h" | 22 #include "storage/common/fileapi/file_system_util.h" |
23 | 23 |
24 using webkit_database::DatabaseUtil; | 24 using webkit_database::DatabaseUtil; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 static const int kCommitTimerSeconds = 1; | 28 static const int kCommitTimerSeconds = 1; |
29 | 29 |
30 DOMStorageArea::CommitBatch::CommitBatch() | 30 DOMStorageArea::CommitBatch::CommitBatch() |
31 : clear_all_first(false) { | 31 : clear_all_first(false) { |
32 } | 32 } |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 commit_batch_->clear_all_first, | 395 commit_batch_->clear_all_first, |
396 commit_batch_->changed_values); | 396 commit_batch_->changed_values); |
397 DCHECK(success); | 397 DCHECK(success); |
398 } | 398 } |
399 commit_batch_.reset(); | 399 commit_batch_.reset(); |
400 backing_.reset(); | 400 backing_.reset(); |
401 session_storage_backing_ = NULL; | 401 session_storage_backing_ = NULL; |
402 } | 402 } |
403 | 403 |
404 } // namespace content | 404 } // namespace content |
OLD | NEW |