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

Side by Side Diff: content/renderer/renderer_webidbfactory_impl.cc

Issue 8171015: Rename RenderThread to RenderThreadImpl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/renderer_webidbfactory_impl.h" 5 #include "content/renderer/renderer_webidbfactory_impl.h"
6 6
7 #include "content/renderer/render_thread.h" 7 #include "content/renderer/render_thread_impl.h"
8 #include "content/renderer/indexed_db_dispatcher.h" 8 #include "content/renderer/indexed_db_dispatcher.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
11 11
12 using WebKit::WebDOMStringList; 12 using WebKit::WebDOMStringList;
13 using WebKit::WebFrame; 13 using WebKit::WebFrame;
14 using WebKit::WebIDBCallbacks; 14 using WebKit::WebIDBCallbacks;
15 using WebKit::WebIDBDatabase; 15 using WebKit::WebIDBDatabase;
16 using WebKit::WebSecurityOrigin; 16 using WebKit::WebSecurityOrigin;
17 using WebKit::WebString; 17 using WebKit::WebString;
18 18
19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() { 19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() {
20 } 20 }
21 21
22 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() { 22 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
23 } 23 }
24 24
25 void RendererWebIDBFactoryImpl::getDatabaseNames( 25 void RendererWebIDBFactoryImpl::getDatabaseNames(
26 WebIDBCallbacks* callbacks, 26 WebIDBCallbacks* callbacks,
27 const WebSecurityOrigin& origin, 27 const WebSecurityOrigin& origin,
28 WebFrame* web_frame, 28 WebFrame* web_frame,
29 const WebString& data_dir_unused, 29 const WebString& data_dir_unused,
30 unsigned long long maximum_size_unused, 30 unsigned long long maximum_size_unused,
31 WebKit::WebIDBFactory::BackingStoreType) { 31 WebKit::WebIDBFactory::BackingStoreType) {
32 IndexedDBDispatcher* dispatcher = 32 IndexedDBDispatcher* dispatcher =
33 RenderThread::current()->indexed_db_dispatcher(); 33 RenderThreadImpl::current()->indexed_db_dispatcher();
34 dispatcher->RequestIDBFactoryGetDatabaseNames( 34 dispatcher->RequestIDBFactoryGetDatabaseNames(
35 callbacks, origin.databaseIdentifier(), web_frame); 35 callbacks, origin.databaseIdentifier(), web_frame);
36 } 36 }
37 37
38 void RendererWebIDBFactoryImpl::open( 38 void RendererWebIDBFactoryImpl::open(
39 const WebString& name, 39 const WebString& name,
40 WebIDBCallbacks* callbacks, 40 WebIDBCallbacks* callbacks,
41 const WebSecurityOrigin& origin, 41 const WebSecurityOrigin& origin,
42 WebFrame* web_frame, 42 WebFrame* web_frame,
43 const WebString& data_dir, 43 const WebString& data_dir,
44 unsigned long long maximum_size_unused, 44 unsigned long long maximum_size_unused,
45 WebKit::WebIDBFactory::BackingStoreType) { 45 WebKit::WebIDBFactory::BackingStoreType) {
46 // Don't send the data_dir. We know what we want on the Browser side of 46 // Don't send the data_dir. We know what we want on the Browser side of
47 // things. 47 // things.
48 IndexedDBDispatcher* dispatcher = 48 IndexedDBDispatcher* dispatcher =
49 RenderThread::current()->indexed_db_dispatcher(); 49 RenderThreadImpl::current()->indexed_db_dispatcher();
50 dispatcher->RequestIDBFactoryOpen( 50 dispatcher->RequestIDBFactoryOpen(
51 name, callbacks, origin.databaseIdentifier(), web_frame); 51 name, callbacks, origin.databaseIdentifier(), web_frame);
52 } 52 }
53 53
54 void RendererWebIDBFactoryImpl::deleteDatabase( 54 void RendererWebIDBFactoryImpl::deleteDatabase(
55 const WebString& name, 55 const WebString& name,
56 WebIDBCallbacks* callbacks, 56 WebIDBCallbacks* callbacks,
57 const WebSecurityOrigin& origin, 57 const WebSecurityOrigin& origin,
58 WebFrame* web_frame, 58 WebFrame* web_frame,
59 const WebString& data_dir) { 59 const WebString& data_dir) {
60 deleteDatabase(name, callbacks, origin, web_frame, data_dir, 60 deleteDatabase(name, callbacks, origin, web_frame, data_dir,
61 WebKit::WebIDBFactory::DefaultBackingStore); 61 WebKit::WebIDBFactory::DefaultBackingStore);
62 } 62 }
63 63
64 void RendererWebIDBFactoryImpl::deleteDatabase( 64 void RendererWebIDBFactoryImpl::deleteDatabase(
65 const WebString& name, 65 const WebString& name,
66 WebIDBCallbacks* callbacks, 66 WebIDBCallbacks* callbacks,
67 const WebSecurityOrigin& origin, 67 const WebSecurityOrigin& origin,
68 WebFrame* web_frame, 68 WebFrame* web_frame,
69 const WebString& data_dir, 69 const WebString& data_dir,
70 WebKit::WebIDBFactory::BackingStoreType) { 70 WebKit::WebIDBFactory::BackingStoreType) {
71 // Don't send the data_dir. We know what we want on the Browser side of 71 // Don't send the data_dir. We know what we want on the Browser side of
72 // things. 72 // things.
73 IndexedDBDispatcher* dispatcher = 73 IndexedDBDispatcher* dispatcher =
74 RenderThread::current()->indexed_db_dispatcher(); 74 RenderThreadImpl::current()->indexed_db_dispatcher();
75 dispatcher->RequestIDBFactoryDeleteDatabase( 75 dispatcher->RequestIDBFactoryDeleteDatabase(
76 name, callbacks, origin.databaseIdentifier(), web_frame); 76 name, callbacks, origin.databaseIdentifier(), web_frame);
77 } 77 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webidbdatabase_impl.cc ('k') | content/renderer/renderer_webidbindex_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698