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

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

Issue 16581002: IndexedDB: Eliminate interfaces for IndexedDB{Factory,Database,Cursor} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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_CALLBACKS_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "content/browser/indexed_db/indexed_db_database.h"
16 #include "content/browser/indexed_db/indexed_db_database_error.h" 15 #include "content/browser/indexed_db/indexed_db_database_error.h"
17 #include "content/common/indexed_db/indexed_db_key.h" 16 #include "content/common/indexed_db/indexed_db_key.h"
18 #include "content/common/indexed_db/indexed_db_key_path.h" 17 #include "content/common/indexed_db/indexed_db_key_path.h"
19 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
20 19
21 namespace WebKit { 20 namespace WebKit {
22 class WebIDBCallbacks; 21 class WebIDBCallbacks;
23 } 22 }
24 23
25 namespace content { 24 namespace content {
26 class IndexedDBCursor; 25 class IndexedDBCursor;
26 class IndexedDBDatabase;
27 class IndexedDBDatabaseCallbacksWrapper;
27 class WebIDBDatabaseImpl; 28 class WebIDBDatabaseImpl;
29 struct IndexedDBDatabaseMetadata;
28 30
29 class CONTENT_EXPORT IndexedDBCallbacksWrapper 31 class CONTENT_EXPORT IndexedDBCallbacksWrapper
30 : public base::RefCounted<IndexedDBCallbacksWrapper> { 32 : public base::RefCounted<IndexedDBCallbacksWrapper> {
31 public: 33 public:
32 static scoped_refptr<IndexedDBCallbacksWrapper> Create( 34 static scoped_refptr<IndexedDBCallbacksWrapper> Create(
33 WebKit::WebIDBCallbacks* callbacks) { 35 WebKit::WebIDBCallbacks* callbacks) {
34 return make_scoped_refptr(new IndexedDBCallbacksWrapper(callbacks)); 36 return make_scoped_refptr(new IndexedDBCallbacksWrapper(callbacks));
35 } 37 }
36 38
37 virtual void OnError(const IndexedDBDatabaseError& error); 39 virtual void OnError(const IndexedDBDatabaseError& error);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 scoped_ptr<WebIDBDatabaseImpl> web_database_impl_; 91 scoped_ptr<WebIDBDatabaseImpl> web_database_impl_;
90 scoped_ptr<WebKit::WebIDBCallbacks> callbacks_; 92 scoped_ptr<WebKit::WebIDBCallbacks> callbacks_;
91 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; 93 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_;
92 bool did_complete_; 94 bool did_complete_;
93 bool did_create_proxy_; 95 bool did_create_proxy_;
94 }; 96 };
95 97
96 } // namespace content 98 } // namespace content
97 99
98 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ 100 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store_unittest.cc ('k') | content/browser/indexed_db/indexed_db_cursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698