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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Will be null in unit tests. | 98 // Will be null in unit tests. |
99 storage::QuotaManagerProxy* quota_manager_proxy() const { | 99 storage::QuotaManagerProxy* quota_manager_proxy() const { |
100 return quota_manager_proxy_.get(); | 100 return quota_manager_proxy_.get(); |
101 } | 101 } |
102 | 102 |
103 // Returns a list of all origins with backing stores. | 103 // Returns a list of all origins with backing stores. |
104 std::vector<url::Origin> GetAllOrigins(); | 104 std::vector<url::Origin> GetAllOrigins(); |
105 bool HasOrigin(const url::Origin& origin); | 105 bool HasOrigin(const url::Origin& origin); |
106 | 106 |
107 // Used by IndexedDBInternalsUI to populate internals page. | 107 // Used by IndexedDBInternalsUI to populate internals page. |
| 108 #if 0 |
108 base::ListValue* GetAllOriginsDetails(); | 109 base::ListValue* GetAllOriginsDetails(); |
| 110 #endif |
109 | 111 |
110 // ForceClose takes a value rather than a reference since it may release the | 112 // ForceClose takes a value rather than a reference since it may release the |
111 // owning object. | 113 // owning object. |
112 void ForceClose(const url::Origin origin, ForceCloseReason reason); | 114 void ForceClose(const url::Origin origin, ForceCloseReason reason); |
113 // GetStoragePaths returns all paths owned by this database, in arbitrary | 115 // GetStoragePaths returns all paths owned by this database, in arbitrary |
114 // order. | 116 // order. |
115 std::vector<base::FilePath> GetStoragePaths(const url::Origin& origin) const; | 117 std::vector<base::FilePath> GetStoragePaths(const url::Origin& origin) const; |
116 | 118 |
117 base::FilePath data_path() const { return data_path_; } | 119 base::FilePath data_path() const { return data_path_; } |
118 size_t GetConnectionCount(const url::Origin& origin); | 120 size_t GetConnectionCount(const url::Origin& origin); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 168 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
167 std::unique_ptr<std::set<url::Origin>> origin_set_; | 169 std::unique_ptr<std::set<url::Origin>> origin_set_; |
168 OriginToSizeMap origin_size_map_; | 170 OriginToSizeMap origin_size_map_; |
169 | 171 |
170 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); | 172 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); |
171 }; | 173 }; |
172 | 174 |
173 } // namespace content | 175 } // namespace content |
174 | 176 |
175 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 177 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
OLD | NEW |