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

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

Issue 16573003: Remove content/browser dependency on WebKit::WebIDBCallbacks and WebKit::WebIDBDatabaseCallbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix namespace issues 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 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h"
5 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" 6 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h"
6 7
7 namespace content { 8 namespace content {
8 9
9 IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper( 10 IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper(
10 WebKit::WebIDBDatabaseCallbacks* callbacks) 11 IndexedDBDatabaseCallbacks* callbacks)
11 : callbacks_(callbacks) {} 12 : callbacks_(callbacks) {}
12 IndexedDBDatabaseCallbacksWrapper::~IndexedDBDatabaseCallbacksWrapper() {} 13 IndexedDBDatabaseCallbacksWrapper::~IndexedDBDatabaseCallbacksWrapper() {}
13 14
14 void IndexedDBDatabaseCallbacksWrapper::OnForcedClose() { 15 void IndexedDBDatabaseCallbacksWrapper::OnForcedClose() {
15 if (!callbacks_) 16 if (!callbacks_)
16 return; 17 return;
17 callbacks_->onForcedClose(); 18 callbacks_->onForcedClose();
18 callbacks_.reset(); 19 callbacks_.reset();
19 } 20 }
20 void IndexedDBDatabaseCallbacksWrapper::OnVersionChange(int64 old_version, 21 void IndexedDBDatabaseCallbacksWrapper::OnVersionChange(int64 old_version,
(...skipping 12 matching lines...) Expand all
33 transaction_id, 34 transaction_id,
34 WebKit::WebIDBDatabaseError(error.code(), error.message())); 35 WebKit::WebIDBDatabaseError(error.code(), error.message()));
35 } 36 }
36 void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) { 37 void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) {
37 if (!callbacks_) 38 if (!callbacks_)
38 return; 39 return;
39 callbacks_->onComplete(transaction_id); 40 callbacks_->onComplete(transaction_id);
40 } 41 }
41 42
42 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698