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

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

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 10 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" 12 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
13 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 13 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
14 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
15 #include "third_party/WebKit/public/platform/WebString.h"
16 14
17 namespace content { 15 namespace content {
16 class IndexedDBDatabaseError;
18 class WebIDBCursorImpl; 17 class WebIDBCursorImpl;
19 class WebIDBDatabaseImpl; 18 class WebIDBDatabaseImpl;
20 struct IndexedDBDatabaseMetadata; 19 struct IndexedDBDatabaseMetadata;
21 20
22 class IndexedDBCallbacksBase { 21 class IndexedDBCallbacksBase {
23 public: 22 public:
24 virtual ~IndexedDBCallbacksBase(); 23 virtual ~IndexedDBCallbacksBase();
25 24
26 virtual void onError(const WebKit::WebIDBDatabaseError& error); 25 virtual void onError(const IndexedDBDatabaseError& error);
27 virtual void onBlocked(long long old_version); 26 virtual void onBlocked(long long old_version);
28 27
29 // implemented by subclasses, but need to be called later 28 // implemented by subclasses, but need to be called later
30 virtual void onSuccess(const std::vector<string16>& value); 29 virtual void onSuccess(const std::vector<string16>& value);
31 virtual void onSuccess(WebIDBDatabaseImpl* idb_object, 30 virtual void onSuccess(WebIDBDatabaseImpl* idb_object,
32 const IndexedDBDatabaseMetadata& metadata); 31 const IndexedDBDatabaseMetadata& metadata);
33 virtual void onUpgradeNeeded(long long old_version, 32 virtual void onUpgradeNeeded(long long old_version,
34 WebIDBDatabaseImpl* database, 33 WebIDBDatabaseImpl* database,
35 const IndexedDBDatabaseMetadata&, 34 const IndexedDBDatabaseMetadata&,
36 WebKit::WebIDBCallbacks::DataLoss data_loss); 35 WebKit::WebIDBCallbacks::DataLoss data_loss);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 virtual void onSuccess(); 200 virtual void onSuccess();
202 virtual void onSuccess(const IndexedDBKey& value); 201 virtual void onSuccess(const IndexedDBKey& value);
203 202
204 private: 203 private:
205 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); 204 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
206 }; 205 };
207 206
208 } // namespace content 207 } // namespace content
209 208
210 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 209 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698