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

Side by Side Diff: content/browser/indexed_db/webidbcursor_impl.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: 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_WEBIDBCURSOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 9 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
10 10
11 namespace content { 11 namespace content {
12 class IndexedDBCursor; 12 class IndexedDBCursor;
13 class IndexedDBCallbacksBase;
13 14
14 class WebIDBCursorImpl : public WebKit::WebIDBCursor { 15 class WebIDBCursorImpl {
15 public: 16 public:
16 explicit WebIDBCursorImpl(scoped_refptr<IndexedDBCursor> cursor); 17 explicit WebIDBCursorImpl(scoped_refptr<IndexedDBCursor> cursor);
17 virtual ~WebIDBCursorImpl(); 18 virtual ~WebIDBCursorImpl();
18 19
19 virtual void advance(unsigned long, WebKit::WebIDBCallbacks* callbacks); 20 virtual void advance(unsigned long, IndexedDBCallbacksBase* callbacks);
20 virtual void continueFunction(const WebKit::WebIDBKey& key, 21 virtual void continueFunction(const WebKit::WebIDBKey& key,
21 WebKit::WebIDBCallbacks* callbacks); 22 IndexedDBCallbacksBase* callbacks);
22 virtual void prefetchContinue(int number_to_fetch, 23 virtual void prefetchContinue(int number_to_fetch,
23 WebKit::WebIDBCallbacks* callbacks); 24 IndexedDBCallbacksBase* callbacks);
24 virtual void prefetchReset(int used_prefetches, int unused_prefetches); 25 virtual void prefetchReset(int used_prefetches, int unused_prefetches);
25 26
26 private: 27 private:
27 scoped_refptr<IndexedDBCursor> idb_cursor_backend_; 28 scoped_refptr<IndexedDBCursor> idb_cursor_backend_;
28 }; 29 };
29 30
30 } // namespace content 31 } // namespace content
31 32
32 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ 33 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698