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

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

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win 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
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 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
6
5 #include "content/browser/indexed_db/indexed_db_callbacks.h" 7 #include "content/browser/indexed_db/indexed_db_callbacks.h"
6 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
7 #include "content/browser/indexed_db/indexed_db_cursor.h" 8 #include "content/browser/indexed_db/indexed_db_cursor.h"
9 #include "content/browser/indexed_db/indexed_db_database_callbacks.h"
8 #include "content/browser/indexed_db/indexed_db_metadata.h" 10 #include "content/browser/indexed_db/indexed_db_metadata.h"
9 #include "content/browser/indexed_db/webidbdatabase_impl.h" 11 #include "content/browser/indexed_db/webidbdatabase_impl.h"
10 12
11 namespace content { 13 namespace content {
12 14
13 using WebKit::WebIDBCallbacks; 15 using WebKit::WebIDBCallbacks;
14 16
15 IndexedDBCallbacksWrapper::IndexedDBCallbacksWrapper( 17 IndexedDBCallbacksWrapper::IndexedDBCallbacksWrapper(
16 IndexedDBCallbacksBase* callbacks) 18 IndexedDBCallbacksBase* callbacks)
17 : callbacks_(callbacks), did_complete_(false), did_create_proxy_(false) {} 19 : callbacks_(callbacks), did_complete_(false), did_create_proxy_(false) {}
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 WebIDBDatabaseImpl* impl = 122 WebIDBDatabaseImpl* impl =
121 did_create_proxy_ ? 0 123 did_create_proxy_ ? 0
122 : new WebIDBDatabaseImpl(database, database_callbacks_); 124 : new WebIDBDatabaseImpl(database, database_callbacks_);
123 database_callbacks_ = NULL; 125 database_callbacks_ = NULL;
124 126
125 callbacks_->onSuccess(impl, metadata); 127 callbacks_->onSuccess(impl, metadata);
126 callbacks_.reset(); 128 callbacks_.reset();
127 } 129 }
128 130
129 void IndexedDBCallbacksWrapper::SetDatabaseCallbacks( 131 void IndexedDBCallbacksWrapper::SetDatabaseCallbacks(
130 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks) { 132 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks) {
131 database_callbacks_ = database_callbacks; 133 database_callbacks_ = database_callbacks;
132 } 134 }
133 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_callbacks_wrapper.h ('k') | content/browser/indexed_db/indexed_db_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698