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

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

Issue 15564008: Migrate the IndexedDB backend from Blink to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Accessor naming, use LevelDBSlice ctor explicitly Created 7 years, 7 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/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/string16.h"
11 #include "content/browser/indexed_db/indexed_db_database_error.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseCallb acks.h"
13
14 namespace content {
15
16 class IndexedDBDatabaseCallbacksWrapper
17 : public base::RefCounted<IndexedDBDatabaseCallbacksWrapper> {
18 public:
19 static scoped_refptr<IndexedDBDatabaseCallbacksWrapper> Create(
20 WebKit::WebIDBDatabaseCallbacks* callbacks) {
21 return make_scoped_refptr(new IndexedDBDatabaseCallbacksWrapper(callbacks));
22 }
23
24 virtual void OnForcedClose();
25 virtual void OnVersionChange(int64_t old_version, int64_t new_version);
26
27 virtual void OnAbort(int64_t transaction_id,
28 scoped_refptr<IndexedDBDatabaseError>);
29 virtual void OnComplete(int64_t transaction_id);
30
31 private:
32 IndexedDBDatabaseCallbacksWrapper(WebKit::WebIDBDatabaseCallbacks*);
33 virtual ~IndexedDBDatabaseCallbacksWrapper();
34 friend class base::RefCounted<IndexedDBDatabaseCallbacksWrapper>;
35
36 scoped_ptr<WebKit::WebIDBDatabaseCallbacks> callbacks_;
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698