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

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

Issue 15659013: Revert "Migrate the IndexedDB backend from Blink to Chromium" (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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/string16.h"
12 #include "content/browser/indexed_db/indexed_db_database_error.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseCallb acks.h"
14
15 namespace content {
16
17 class IndexedDBDatabaseCallbacksWrapper
18 : public base::RefCounted<IndexedDBDatabaseCallbacksWrapper> {
19 public:
20 static scoped_refptr<IndexedDBDatabaseCallbacksWrapper> Create(
21 WebKit::WebIDBDatabaseCallbacks* callbacks) {
22 return make_scoped_refptr(new IndexedDBDatabaseCallbacksWrapper(callbacks));
23 }
24
25 virtual void OnForcedClose();
26 virtual void OnVersionChange(int64 old_version, int64 new_version);
27
28 virtual void OnAbort(int64 transaction_id,
29 scoped_refptr<IndexedDBDatabaseError> error);
30 virtual void OnComplete(int64 transaction_id);
31
32 private:
33 explicit IndexedDBDatabaseCallbacksWrapper(
34 WebKit::WebIDBDatabaseCallbacks* callbacks);
35 virtual ~IndexedDBDatabaseCallbacksWrapper();
36 friend class base::RefCounted<IndexedDBDatabaseCallbacksWrapper>;
37
38 scoped_ptr<WebKit::WebIDBDatabaseCallbacks> callbacks_;
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.h ('k') | content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698