OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class CONTENT_EXPORT Transaction; | 46 class CONTENT_EXPORT Transaction; |
47 | 47 |
48 const GURL& origin_url() const { return origin_url_; } | 48 const GURL& origin_url() const { return origin_url_; } |
49 base::OneShotTimer<IndexedDBBackingStore>* close_timer() { | 49 base::OneShotTimer<IndexedDBBackingStore>* close_timer() { |
50 return &close_timer_; | 50 return &close_timer_; |
51 } | 51 } |
52 | 52 |
53 static scoped_refptr<IndexedDBBackingStore> Open( | 53 static scoped_refptr<IndexedDBBackingStore> Open( |
54 const GURL& origin_url, | 54 const GURL& origin_url, |
55 const base::FilePath& path_base, | 55 const base::FilePath& path_base, |
56 WebKit::WebIDBCallbacks::DataLoss* data_loss, | 56 blink::WebIDBCallbacks::DataLoss* data_loss, |
57 std::string* data_loss_message, | 57 std::string* data_loss_message, |
58 bool* disk_full); | 58 bool* disk_full); |
59 | 59 |
60 static scoped_refptr<IndexedDBBackingStore> Open( | 60 static scoped_refptr<IndexedDBBackingStore> Open( |
61 const GURL& origin_url, | 61 const GURL& origin_url, |
62 const base::FilePath& path_base, | 62 const base::FilePath& path_base, |
63 WebKit::WebIDBCallbacks::DataLoss* data_loss, | 63 blink::WebIDBCallbacks::DataLoss* data_loss, |
64 std::string* data_loss_message, | 64 std::string* data_loss_message, |
65 bool* disk_full, | 65 bool* disk_full, |
66 LevelDBFactory* factory); | 66 LevelDBFactory* factory); |
67 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( | 67 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( |
68 const GURL& origin_url); | 68 const GURL& origin_url); |
69 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( | 69 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( |
70 const GURL& origin_url, | 70 const GURL& origin_url, |
71 LevelDBFactory* factory); | 71 LevelDBFactory* factory); |
72 | 72 |
73 virtual std::vector<string16> GetDatabaseNames(); | 73 virtual std::vector<string16> GetDatabaseNames(); |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 const std::string origin_identifier_; | 329 const std::string origin_identifier_; |
330 | 330 |
331 scoped_ptr<LevelDBDatabase> db_; | 331 scoped_ptr<LevelDBDatabase> db_; |
332 scoped_ptr<LevelDBComparator> comparator_; | 332 scoped_ptr<LevelDBComparator> comparator_; |
333 base::OneShotTimer<IndexedDBBackingStore> close_timer_; | 333 base::OneShotTimer<IndexedDBBackingStore> close_timer_; |
334 }; | 334 }; |
335 | 335 |
336 } // namespace content | 336 } // namespace content |
337 | 337 |
338 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 338 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
OLD | NEW |