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

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

Issue 6627081: IndexedDB: Add --level-db flag, and pipe through to WebIDBFactory::open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/renderer_webidbfactory_impl.h" 5 #include "chrome/renderer/renderer_webidbfactory_impl.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/renderer/render_thread.h" 8 #include "chrome/renderer/render_thread.h"
9 #include "chrome/renderer/indexed_db_dispatcher.h" 9 #include "chrome/renderer/indexed_db_dispatcher.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h"
(...skipping 11 matching lines...) Expand all
22 22
23 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() { 23 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
24 } 24 }
25 25
26 void RendererWebIDBFactoryImpl::open( 26 void RendererWebIDBFactoryImpl::open(
27 const WebString& name, 27 const WebString& name,
28 WebIDBCallbacks* callbacks, 28 WebIDBCallbacks* callbacks,
29 const WebSecurityOrigin& origin, 29 const WebSecurityOrigin& origin,
30 WebFrame* web_frame, 30 WebFrame* web_frame,
31 const WebString& data_dir, 31 const WebString& data_dir,
32 unsigned long long maximum_size) { 32 unsigned long long maximum_size,
33 WebKit::WebIDBFactory::BackingStoreType) {
33 // Don't send the data_dir. We know what we want on the Browser side of 34 // Don't send the data_dir. We know what we want on the Browser side of
34 // things. 35 // things.
35 IndexedDBDispatcher* dispatcher = 36 IndexedDBDispatcher* dispatcher =
36 RenderThread::current()->indexed_db_dispatcher(); 37 RenderThread::current()->indexed_db_dispatcher();
37 dispatcher->RequestIDBFactoryOpen( 38 dispatcher->RequestIDBFactoryOpen(
38 name, callbacks, origin.databaseIdentifier(), web_frame, maximum_size); 39 name, callbacks, origin.databaseIdentifier(), web_frame, maximum_size);
39 } 40 }
40 41
41 void RendererWebIDBFactoryImpl::deleteDatabase( 42 void RendererWebIDBFactoryImpl::deleteDatabase(
42 const WebString& name, 43 const WebString& name,
43 WebIDBCallbacks* callbacks, 44 WebIDBCallbacks* callbacks,
44 const WebSecurityOrigin& origin, 45 const WebSecurityOrigin& origin,
45 WebFrame* web_frame, 46 WebFrame* web_frame,
46 const WebString& data_dir) { 47 const WebString& data_dir) {
47 // Don't send the data_dir. We know what we want on the Browser side of 48 // Don't send the data_dir. We know what we want on the Browser side of
48 // things. 49 // things.
49 IndexedDBDispatcher* dispatcher = 50 IndexedDBDispatcher* dispatcher =
50 RenderThread::current()->indexed_db_dispatcher(); 51 RenderThread::current()->indexed_db_dispatcher();
51 dispatcher->RequestIDBFactoryDeleteDatabase( 52 dispatcher->RequestIDBFactoryDeleteDatabase(
52 name, callbacks, origin.databaseIdentifier(), web_frame); 53 name, callbacks, origin.databaseIdentifier(), web_frame);
53 } 54 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webidbfactory_impl.h ('k') | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698