Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 259063004: Track which IndexedDBBackingStores have been opened since boot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged out Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 static scoped_refptr<IndexedDBBackingStore> Open( 84 static scoped_refptr<IndexedDBBackingStore> Open(
85 IndexedDBFactory* indexed_db_factory, 85 IndexedDBFactory* indexed_db_factory,
86 const GURL& origin_url, 86 const GURL& origin_url,
87 const base::FilePath& path_base, 87 const base::FilePath& path_base,
88 net::URLRequestContext* request_context, 88 net::URLRequestContext* request_context,
89 blink::WebIDBDataLoss* data_loss, 89 blink::WebIDBDataLoss* data_loss,
90 std::string* data_loss_message, 90 std::string* data_loss_message,
91 bool* disk_full, 91 bool* disk_full,
92 base::TaskRunner* task_runner); 92 base::TaskRunner* task_runner,
93 93 bool clean_journal);
94 static scoped_refptr<IndexedDBBackingStore> Open( 94 static scoped_refptr<IndexedDBBackingStore> Open(
95 IndexedDBFactory* indexed_db_factory, 95 IndexedDBFactory* indexed_db_factory,
96 const GURL& origin_url, 96 const GURL& origin_url,
97 const base::FilePath& path_base, 97 const base::FilePath& path_base,
98 net::URLRequestContext* request_context, 98 net::URLRequestContext* request_context,
99 blink::WebIDBDataLoss* data_loss, 99 blink::WebIDBDataLoss* data_loss,
100 std::string* data_loss_message, 100 std::string* data_loss_message,
101 bool* disk_full, 101 bool* disk_full,
102 LevelDBFactory* leveldb_factory, 102 LevelDBFactory* leveldb_factory,
103 base::TaskRunner* task_runner); 103 base::TaskRunner* task_runner,
104 bool clean_journal);
104 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( 105 static scoped_refptr<IndexedDBBackingStore> OpenInMemory(
105 const GURL& origin_url, 106 const GURL& origin_url,
106 base::TaskRunner* task_runner); 107 base::TaskRunner* task_runner);
107 static scoped_refptr<IndexedDBBackingStore> OpenInMemory( 108 static scoped_refptr<IndexedDBBackingStore> OpenInMemory(
108 const GURL& origin_url, 109 const GURL& origin_url,
109 LevelDBFactory* level_db_factory, 110 LevelDBFactory* level_db_factory,
110 base::TaskRunner* task_runner); 111 base::TaskRunner* task_runner);
111 112
112 void GrantChildProcessPermissions(int child_process_id); 113 void GrantChildProcessPermissions(int child_process_id);
113 114
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 scoped_ptr<LevelDBComparator> comparator_; 520 scoped_ptr<LevelDBComparator> comparator_;
520 // Whenever blobs are registered in active_blob_registry_, indexed_db_factory_ 521 // Whenever blobs are registered in active_blob_registry_, indexed_db_factory_
521 // will hold a reference to this backing store. 522 // will hold a reference to this backing store.
522 IndexedDBActiveBlobRegistry active_blob_registry_; 523 IndexedDBActiveBlobRegistry active_blob_registry_;
523 base::OneShotTimer<IndexedDBBackingStore> close_timer_; 524 base::OneShotTimer<IndexedDBBackingStore> close_timer_;
524 }; 525 };
525 526
526 } // namespace content 527 } // namespace content
527 528
528 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 529 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698