OLD | NEW |
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 #include "chrome/browser/ui/webui/quota_internals/quota_internals_types.h" | 5 #include "chrome/browser/ui/webui/quota_internals/quota_internals_types.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "net/base/url_util.h" | 11 #include "net/base/url_util.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 std::string StorageTypeToString(storage::StorageType type) { | 15 std::string StorageTypeToString(storage::StorageType type) { |
15 switch (type) { | 16 switch (type) { |
16 case storage::kStorageTypeTemporary: | 17 case storage::kStorageTypeTemporary: |
17 return "temporary"; | 18 return "temporary"; |
18 case storage::kStorageTypePersistent: | 19 case storage::kStorageTypePersistent: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if (!last_access_time_.is_null()) | 99 if (!last_access_time_.is_null()) |
99 dict->SetDouble("lastAccessTime", last_access_time_.ToDoubleT() * 1000.0); | 100 dict->SetDouble("lastAccessTime", last_access_time_.ToDoubleT() * 1000.0); |
100 if (!last_modified_time_.is_null()) { | 101 if (!last_modified_time_.is_null()) { |
101 dict->SetDouble("lastModifiedTime", | 102 dict->SetDouble("lastModifiedTime", |
102 last_modified_time_.ToDoubleT() * 1000.0); | 103 last_modified_time_.ToDoubleT() * 1000.0); |
103 } | 104 } |
104 return dict; | 105 return dict; |
105 } | 106 } |
106 | 107 |
107 } // namespace quota_internals | 108 } // namespace quota_internals |
OLD | NEW |