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

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

Issue 9368053: Move indexed db files from content/renderer to content/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneccesary include Created 8 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/renderer/indexed_db/renderer_webidbfactory_impl.h"
6
7 #include "content/renderer/indexed_db/indexed_db_dispatcher.h"
8 #include "content/renderer/render_thread_impl.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
11
12 using WebKit::WebDOMStringList;
13 using WebKit::WebFrame;
14 using WebKit::WebIDBCallbacks;
15 using WebKit::WebIDBDatabase;
16 using WebKit::WebSecurityOrigin;
17 using WebKit::WebString;
18
19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() {
20 }
21
22 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
23 }
24
25 void RendererWebIDBFactoryImpl::getDatabaseNames(
26 WebIDBCallbacks* callbacks,
27 const WebSecurityOrigin& origin,
28 WebFrame* web_frame,
29 const WebString& data_dir_unused) {
30 IndexedDBDispatcher* dispatcher =
31 IndexedDBDispatcher::ThreadSpecificInstance();
32 dispatcher->RequestIDBFactoryGetDatabaseNames(
33 callbacks, origin.databaseIdentifier(), web_frame);
34 }
35
36 void RendererWebIDBFactoryImpl::open(
37 const WebString& name,
38 WebIDBCallbacks* callbacks,
39 const WebSecurityOrigin& origin,
40 WebFrame* web_frame,
41 const WebString& data_dir) {
42 // Don't send the data_dir. We know what we want on the Browser side of
43 // things.
44 IndexedDBDispatcher* dispatcher =
45 IndexedDBDispatcher::ThreadSpecificInstance();
46 dispatcher->RequestIDBFactoryOpen(
47 name, callbacks, origin.databaseIdentifier(), web_frame);
48 }
49
50 void RendererWebIDBFactoryImpl::deleteDatabase(
51 const WebString& name,
52 WebIDBCallbacks* callbacks,
53 const WebSecurityOrigin& origin,
54 WebFrame* web_frame,
55 const WebString& data_dir) {
56 // Don't send the data_dir. We know what we want on the Browser side of
57 // things.
58 IndexedDBDispatcher* dispatcher =
59 IndexedDBDispatcher::ThreadSpecificInstance();
60 dispatcher->RequestIDBFactoryDeleteDatabase(
61 name, callbacks, origin.databaseIdentifier(), web_frame);
62 }
OLDNEW
« no previous file with comments | « content/renderer/indexed_db/renderer_webidbfactory_impl.h ('k') | content/renderer/indexed_db/renderer_webidbindex_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698