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

Side by Side Diff: content/child/indexed_db/proxy_webidbfactory_impl.cc

Issue 17642005: Remove unused arguments from storage-related Chromium impls of Blink API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after r208825 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/child/indexed_db/proxy_webidbfactory_impl.h" 5 #include "content/child/indexed_db/proxy_webidbfactory_impl.h"
6 6
7 #include "content/child/thread_safe_sender.h" 7 #include "content/child/thread_safe_sender.h"
8 #include "content/child/indexed_db/indexed_db_dispatcher.h" 8 #include "content/child/indexed_db/indexed_db_dispatcher.h"
9 #include "third_party/WebKit/public/platform/WebCString.h" 9 #include "third_party/WebKit/public/platform/WebCString.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
11 11
12 using WebKit::WebIDBCallbacks; 12 using WebKit::WebIDBCallbacks;
13 using WebKit::WebIDBDatabase; 13 using WebKit::WebIDBDatabase;
14 using WebKit::WebIDBDatabaseCallbacks; 14 using WebKit::WebIDBDatabaseCallbacks;
15 using WebKit::WebString; 15 using WebKit::WebString;
16 16
17 namespace content { 17 namespace content {
18 18
19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl( 19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl(
20 ThreadSafeSender* thread_safe_sender) 20 ThreadSafeSender* thread_safe_sender)
21 : thread_safe_sender_(thread_safe_sender) { 21 : thread_safe_sender_(thread_safe_sender) {
22 } 22 }
23 23
24 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() { 24 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
25 } 25 }
26 26
27 void RendererWebIDBFactoryImpl::getDatabaseNames( 27 void RendererWebIDBFactoryImpl::getDatabaseNames(
28 WebIDBCallbacks* callbacks, 28 WebIDBCallbacks* callbacks,
29 const WebString& database_identifier, 29 const WebString& database_identifier) {
30 const WebString& data_dir_unused) {
31 IndexedDBDispatcher* dispatcher = 30 IndexedDBDispatcher* dispatcher =
32 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_); 31 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
33 dispatcher->RequestIDBFactoryGetDatabaseNames( 32 dispatcher->RequestIDBFactoryGetDatabaseNames(
34 callbacks, database_identifier.utf8()); 33 callbacks, database_identifier.utf8());
35 } 34 }
36 35
37 void RendererWebIDBFactoryImpl::open( 36 void RendererWebIDBFactoryImpl::open(
38 const WebString& name, 37 const WebString& name,
39 long long version, 38 long long version,
40 long long transaction_id, 39 long long transaction_id,
41 WebIDBCallbacks* callbacks, 40 WebIDBCallbacks* callbacks,
42 WebIDBDatabaseCallbacks* database_callbacks, 41 WebIDBDatabaseCallbacks* database_callbacks,
43 const WebString& database_identifier, 42 const WebString& database_identifier) {
44 const WebString& data_dir) {
45 // Don't send the data_dir. We know what we want on the Browser side of
46 // things.
47 IndexedDBDispatcher* dispatcher = 43 IndexedDBDispatcher* dispatcher =
48 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_); 44 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
49 dispatcher->RequestIDBFactoryOpen( 45 dispatcher->RequestIDBFactoryOpen(
50 name, version, transaction_id, callbacks, database_callbacks, 46 name, version, transaction_id, callbacks, database_callbacks,
51 database_identifier.utf8()); 47 database_identifier.utf8());
52 } 48 }
53 49
54 void RendererWebIDBFactoryImpl::deleteDatabase( 50 void RendererWebIDBFactoryImpl::deleteDatabase(
55 const WebString& name, 51 const WebString& name,
56 WebIDBCallbacks* callbacks, 52 WebIDBCallbacks* callbacks,
57 const WebString& database_identifier, 53 const WebString& database_identifier) {
58 const WebString& data_dir) {
59 // Don't send the data_dir. We know what we want on the Browser side of
60 // things.
61 IndexedDBDispatcher* dispatcher = 54 IndexedDBDispatcher* dispatcher =
62 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_); 55 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_);
63 dispatcher->RequestIDBFactoryDeleteDatabase( 56 dispatcher->RequestIDBFactoryDeleteDatabase(
64 name, callbacks, database_identifier.utf8()); 57 name, callbacks, database_identifier.utf8());
65 } 58 }
66 59
67 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/proxy_webidbfactory_impl.h ('k') | content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698