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

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

Issue 3729003: Add plumbing for passing the indexed database quota via IDBFactory::open (Closed)
Patch Set: Address Jeremy's comments Created 10 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
« no previous file with comments | « chrome/renderer/renderer_webidbfactory_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/WebKit/chromium/public/WebDOMStringList.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebDOMStringList.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
12 12
13 using WebKit::WebDOMStringList; 13 using WebKit::WebDOMStringList;
14 using WebKit::WebFrame; 14 using WebKit::WebFrame;
15 using WebKit::WebIDBCallbacks; 15 using WebKit::WebIDBCallbacks;
16 using WebKit::WebIDBDatabase; 16 using WebKit::WebIDBDatabase;
17 using WebKit::WebSecurityOrigin; 17 using WebKit::WebSecurityOrigin;
18 using WebKit::WebString; 18 using WebKit::WebString;
19 19
20 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() { 20 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() {
21 } 21 }
22 22
23 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() { 23 RendererWebIDBFactoryImpl::~RendererWebIDBFactoryImpl() {
24 } 24 }
25 25
26 void RendererWebIDBFactoryImpl::open( 26 void RendererWebIDBFactoryImpl::open(
27 const WebString& name, const WebString& description, 27 const WebString& name,
28 WebIDBCallbacks* callbacks, const WebSecurityOrigin& origin, 28 const WebString& description,
29 WebFrame* web_frame, const WebString& dataDir) { 29 WebIDBCallbacks* callbacks,
30 const WebSecurityOrigin& origin,
31 WebFrame* web_frame,
32 const WebString& dataDir,
33 uint64 maximum_size) {
30 // Don't send the dataDir. We know what we want on the Browser side of things. 34 // Don't send the dataDir. We know what we want on the Browser side of things.
31 IndexedDBDispatcher* dispatcher = 35 IndexedDBDispatcher* dispatcher =
32 RenderThread::current()->indexed_db_dispatcher(); 36 RenderThread::current()->indexed_db_dispatcher();
33 dispatcher->RequestIDBFactoryOpen( 37 dispatcher->RequestIDBFactoryOpen(
34 name, description, callbacks, origin.databaseIdentifier(), web_frame); 38 name, description, callbacks, origin.databaseIdentifier(), web_frame,
39 maximum_size);
35 } 40 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webidbfactory_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698