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

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

Issue 16573003: Remove content/browser dependency on WebKit::WebIDBCallbacks and WebKit::WebIDBDatabaseCallbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove more #includes and forward declarations Created 7 years, 6 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
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_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "content/browser/indexed_db/indexed_db.h" 14 #include "content/browser/indexed_db/indexed_db.h"
15 #include "content/browser/indexed_db/indexed_db_database_error.h" 15 #include "content/browser/indexed_db/indexed_db_database_error.h"
16 #include "content/common/indexed_db/indexed_db_key.h" 16 #include "content/common/indexed_db/indexed_db_key.h"
17 #include "content/common/indexed_db/indexed_db_key_path.h" 17 #include "content/common/indexed_db/indexed_db_key_path.h"
18 #include "content/common/indexed_db/indexed_db_key_range.h" 18 #include "content/common/indexed_db/indexed_db_key_range.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class IndexedDBCallbacksWrapper; 22 class IndexedDBCallbacksWrapper;
23 class IndexedDBDatabaseCallbacksWrapper; 23 class IndexedDBDatabaseCallbacksWrapper;
24 struct IndexedDBDatabaseMetadata;
25 24
26 // This is implemented by IndexedDBDatabaseImpl and optionally others (in order 25 // This is implemented by IndexedDBDatabaseImpl and optionally others (in order
27 // to proxy calls across process barriers). All calls to these classes should be 26 // to proxy calls across process barriers). All calls to these classes should be
28 // non-blocking and trigger work on a background thread if necessary. 27 // non-blocking and trigger work on a background thread if necessary.
29 class IndexedDBDatabase : public base::RefCounted<IndexedDBDatabase> { 28 class IndexedDBDatabase : public base::RefCounted<IndexedDBDatabase> {
30 public: 29 public:
31 virtual void CreateObjectStore(int64 transaction_id, 30 virtual void CreateObjectStore(int64 transaction_id,
32 int64 object_store_id, 31 int64 object_store_id,
33 const string16& name, 32 const string16& name,
34 const IndexedDBKeyPath& key_path, 33 const IndexedDBKeyPath& key_path,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; 121 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0;
123 122
124 protected: 123 protected:
125 virtual ~IndexedDBDatabase() {} 124 virtual ~IndexedDBDatabase() {}
126 friend class base::RefCounted<IndexedDBDatabase>; 125 friend class base::RefCounted<IndexedDBDatabase>;
127 }; 126 };
128 127
129 } // namespace content 128 } // namespace content
130 129
131 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 130 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698