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

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

Issue 1832553002: IndexedDB: Pass url::Origin rather than GURL over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-wdb
Patch Set: Rebased Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_FACTORY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 10 matching lines...) Expand all
21 21
22 class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory { 22 class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
23 public: 23 public:
24 explicit IndexedDBFactoryImpl(IndexedDBContextImpl* context); 24 explicit IndexedDBFactoryImpl(IndexedDBContextImpl* context);
25 25
26 // content::IndexedDBFactory overrides: 26 // content::IndexedDBFactory overrides:
27 void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier, 27 void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier,
28 bool forced_close) override; 28 bool forced_close) override;
29 29
30 void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks, 30 void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks,
31 const GURL& origin_url, 31 const url::Origin& origin,
32 const base::FilePath& data_directory, 32 const base::FilePath& data_directory,
33 net::URLRequestContext* request_context) override; 33 net::URLRequestContext* request_context) override;
34 void Open(const base::string16& name, 34 void Open(const base::string16& name,
35 const IndexedDBPendingConnection& connection, 35 const IndexedDBPendingConnection& connection,
36 net::URLRequestContext* request_context, 36 net::URLRequestContext* request_context,
37 const GURL& origin_url, 37 const url::Origin& origin,
38 const base::FilePath& data_directory) override; 38 const base::FilePath& data_directory) override;
39 39
40 void DeleteDatabase(const base::string16& name, 40 void DeleteDatabase(const base::string16& name,
41 net::URLRequestContext* request_context, 41 net::URLRequestContext* request_context,
42 scoped_refptr<IndexedDBCallbacks> callbacks, 42 scoped_refptr<IndexedDBCallbacks> callbacks,
43 const GURL& origin_url, 43 const url::Origin& origin,
44 const base::FilePath& data_directory) override; 44 const base::FilePath& data_directory) override;
45 45
46 void HandleBackingStoreFailure(const GURL& origin_url) override; 46 void HandleBackingStoreFailure(const GURL& origin_url) override;
47 void HandleBackingStoreCorruption( 47 void HandleBackingStoreCorruption(
48 const GURL& origin_url, 48 const GURL& origin_url,
49 const IndexedDBDatabaseError& error) override; 49 const IndexedDBDatabaseError& error) override;
50 50
51 OriginDBs GetOpenDatabasesForOrigin(const GURL& origin_url) const override; 51 OriginDBs GetOpenDatabasesForOrigin(const GURL& origin_url) const override;
52 52
53 void ForceClose(const GURL& origin_url) override; 53 void ForceClose(const GURL& origin_url) override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; 131 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_;
132 IndexedDBBackingStoreMap backing_stores_with_active_blobs_; 132 IndexedDBBackingStoreMap backing_stores_with_active_blobs_;
133 std::set<GURL> backends_opened_since_boot_; 133 std::set<GURL> backends_opened_since_boot_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); 135 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl);
136 }; 136 };
137 137
138 } // namespace content 138 } // namespace content
139 139
140 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ 140 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698