| 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_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 24 #include "url/origin.h" | 24 #include "url/origin.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 class URLRequestContext; | 27 class URLRequestContext; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 | 31 |
| 32 class IndexedDBBackingStore; | 32 class IndexedDBBackingStore; |
| 33 struct IndexedDBPendingConnection; | 33 class IndexedDBPendingConnection; |
| 34 | 34 |
| 35 class CONTENT_EXPORT IndexedDBFactory | 35 class CONTENT_EXPORT IndexedDBFactory |
| 36 : NON_EXPORTED_BASE(public base::RefCountedThreadSafe<IndexedDBFactory>) { | 36 : NON_EXPORTED_BASE(public base::RefCountedThreadSafe<IndexedDBFactory>) { |
| 37 public: | 37 public: |
| 38 typedef std::multimap<url::Origin, IndexedDBDatabase*> OriginDBMap; | 38 typedef std::multimap<url::Origin, IndexedDBDatabase*> OriginDBMap; |
| 39 typedef OriginDBMap::const_iterator OriginDBMapIterator; | 39 typedef OriginDBMap::const_iterator OriginDBMapIterator; |
| 40 typedef std::pair<OriginDBMapIterator, OriginDBMapIterator> OriginDBs; | 40 typedef std::pair<OriginDBMapIterator, OriginDBMapIterator> OriginDBs; |
| 41 | 41 |
| 42 virtual void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier, | 42 virtual void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier, |
| 43 bool forced_close) = 0; | 43 bool forced_close) = 0; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool first_time, | 106 bool first_time, |
| 107 leveldb::Status* status) = 0; | 107 leveldb::Status* status) = 0; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); | 110 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace content | 113 } // namespace content |
| 114 | 114 |
| 115 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 115 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| OLD | NEW |