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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
41 IndexedDBContextImpl(const base::FilePath& data_path, | 41 IndexedDBContextImpl(const base::FilePath& data_path, |
42 quota::SpecialStoragePolicy* special_storage_policy, | 42 quota::SpecialStoragePolicy* special_storage_policy, |
43 quota::QuotaManagerProxy* quota_manager_proxy, | 43 quota::QuotaManagerProxy* quota_manager_proxy, |
44 base::MessageLoopProxy* webkit_thread_loop); | 44 base::MessageLoopProxy* webkit_thread_loop); |
45 | 45 |
46 WebIDBFactoryImpl* GetIDBFactory(); | 46 WebIDBFactoryImpl* GetIDBFactory(); |
47 | 47 |
48 // The indexed db directory. | 48 // The indexed db directory. |
49 static const base::FilePath::CharType kIndexedDBDirectory[]; | 49 static const base::FilePath::CharType kIndexedDBDirectory[]; |
50 | 50 |
51 // The indexed db file extension. | |
52 static const base::FilePath::CharType kIndexedDBExtension[]; | |
53 | |
54 // Disables the exit-time deletion of session-only data. | 51 // Disables the exit-time deletion of session-only data. |
55 void SetForceKeepSessionState() { force_keep_session_state_ = true; } | 52 void SetForceKeepSessionState() { force_keep_session_state_ = true; } |
56 | 53 |
57 // IndexedDBContext implementation: | 54 // IndexedDBContext implementation: |
58 virtual std::vector<GURL> GetAllOrigins() OVERRIDE; | 55 virtual std::vector<GURL> GetAllOrigins() OVERRIDE; |
59 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE; | 56 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE; |
60 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE; | 57 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE; |
61 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE; | 58 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE; |
62 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE; | 59 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE; |
63 virtual base::FilePath GetFilePathForTesting( | 60 virtual base::FilePath GetFilePathForTesting( |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 OriginToSizeMap space_available_map_; | 127 OriginToSizeMap space_available_map_; |
131 typedef std::set<WebIDBDatabaseImpl*> ConnectionSet; | 128 typedef std::set<WebIDBDatabaseImpl*> ConnectionSet; |
132 std::map<GURL, ConnectionSet> connections_; | 129 std::map<GURL, ConnectionSet> connections_; |
133 | 130 |
134 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); | 131 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); |
135 }; | 132 }; |
136 | 133 |
137 } // namespace content | 134 } // namespace content |
138 | 135 |
139 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 136 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
OLD | NEW |