OLD | NEW |
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 #include "storage/browser/fileapi/sandbox_directory_database.h" | 5 #include "storage/browser/fileapi/sandbox_directory_database.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <memory> | 12 #include <memory> |
13 #include <set> | 13 #include <set> |
14 #include <stack> | 14 #include <stack> |
15 | 15 |
16 #include "base/files/file_enumerator.h" | 16 #include "base/files/file_enumerator.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/location.h" | 18 #include "base/location.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram_macros.h" |
21 #include "base/pickle.h" | 21 #include "base/pickle.h" |
22 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "storage/browser/fileapi/file_system_usage_cache.h" | 24 #include "storage/browser/fileapi/file_system_usage_cache.h" |
25 #include "storage/common/fileapi/file_system_util.h" | 25 #include "storage/common/fileapi/file_system_util.h" |
26 #include "third_party/leveldatabase/env_chromium.h" | 26 #include "third_party/leveldatabase/env_chromium.h" |
27 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 27 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
28 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 28 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 | 952 |
953 void SandboxDirectoryDatabase::HandleError( | 953 void SandboxDirectoryDatabase::HandleError( |
954 const tracked_objects::Location& from_here, | 954 const tracked_objects::Location& from_here, |
955 const leveldb::Status& status) { | 955 const leveldb::Status& status) { |
956 LOG(ERROR) << "SandboxDirectoryDatabase failed at: " | 956 LOG(ERROR) << "SandboxDirectoryDatabase failed at: " |
957 << from_here.ToString() << " with error: " << status.ToString(); | 957 << from_here.ToString() << " with error: " << status.ToString(); |
958 db_.reset(); | 958 db_.reset(); |
959 } | 959 } |
960 | 960 |
961 } // namespace storage | 961 } // namespace storage |
OLD | NEW |