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

Side by Side Diff: content/common/indexed_db/proxy_webidbtransaction_impl.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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) 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 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" 5 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h"
6 6
7 #include "content/common/indexed_db/indexed_db_messages.h" 7 #include "content/common/indexed_db/indexed_db_messages.h"
8 #include "content/common/indexed_db/indexed_db_dispatcher.h" 8 #include "content/common/indexed_db/indexed_db_dispatcher.h"
9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" 9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h"
10 #include "content/common/child_thread.h" 10 #include "content/common/child_thread.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCall backs.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
14 14
15 using WebKit::WebIDBObjectStore; 15 using WebKit::WebIDBObjectStore;
16 using WebKit::WebIDBTransactionCallbacks; 16 using WebKit::WebIDBTransactionCallbacks;
17 using WebKit::WebString; 17 using WebKit::WebString;
18 18
19 namespace content {
20
19 RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl( 21 RendererWebIDBTransactionImpl::RendererWebIDBTransactionImpl(
20 int32 idb_transaction_id) 22 int32 idb_transaction_id)
21 : idb_transaction_id_(idb_transaction_id) { 23 : idb_transaction_id_(idb_transaction_id) {
22 } 24 }
23 25
24 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() { 26 RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() {
25 // It's not possible for there to be pending callbacks that address this 27 // It's not possible for there to be pending callbacks that address this
26 // object since inside WebKit, they hold a reference to the object wich owns 28 // object since inside WebKit, they hold a reference to the object wich owns
27 // this object. But, if that ever changed, then we'd need to invalidate 29 // this object. But, if that ever changed, then we'd need to invalidate
28 // any such pointers. 30 // any such pointers.
(...skipping 29 matching lines...) Expand all
58 idb_transaction_id_)); 60 idb_transaction_id_));
59 } 61 }
60 62
61 void RendererWebIDBTransactionImpl::setCallbacks( 63 void RendererWebIDBTransactionImpl::setCallbacks(
62 WebIDBTransactionCallbacks* callbacks) { 64 WebIDBTransactionCallbacks* callbacks) {
63 IndexedDBDispatcher* dispatcher = 65 IndexedDBDispatcher* dispatcher =
64 IndexedDBDispatcher::ThreadSpecificInstance(); 66 IndexedDBDispatcher::ThreadSpecificInstance();
65 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, 67 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks,
66 idb_transaction_id_); 68 idb_transaction_id_);
67 } 69 }
70
71 } // namespace content
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbtransaction_impl.h ('k') | content/common/net/url_request_user_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698