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

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

Issue 255050: Quota support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "chrome/renderer/renderer_webkitclient_impl.h" 5 #include "chrome/renderer/renderer_webkitclient_impl.h"
6 6
7 #if defined(USE_SYSTEM_SQLITE) 7 #if defined(USE_SYSTEM_SQLITE)
8 #include <sqlite3.h> 8 #include <sqlite3.h>
9 #else 9 #else
10 #include "third_party/sqlite/preprocessed/sqlite3.h" 10 #include "third_party/sqlite/preprocessed/sqlite3.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 if (sudden_termination_disables_ != 1) 145 if (sudden_termination_disables_ != 1)
146 return; 146 return;
147 } 147 }
148 148
149 RenderThread* thread = RenderThread::current(); 149 RenderThread* thread = RenderThread::current();
150 if (thread) // NULL in unittests. 150 if (thread) // NULL in unittests.
151 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled)); 151 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled));
152 } 152 }
153 153
154 WebStorageNamespace* RendererWebKitClientImpl::createLocalStorageNamespace( 154 WebStorageNamespace* RendererWebKitClientImpl::createLocalStorageNamespace(
155 const WebString& path) { 155 const WebString& path, unsigned quota) {
156 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 156 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
157 return WebStorageNamespace::createLocalStorageNamespace(path); 157 return WebStorageNamespace::createLocalStorageNamespace(path, quota);
158 // The browser process decides the path, so ignore that param.
159 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL); 158 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL);
160 } 159 }
161 160
162 WebStorageNamespace* RendererWebKitClientImpl::createSessionStorageNamespace() { 161 WebStorageNamespace* RendererWebKitClientImpl::createSessionStorageNamespace() {
163 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 162 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
164 return WebStorageNamespace::createSessionStorageNamespace(); 163 return WebStorageNamespace::createSessionStorageNamespace();
165 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION); 164 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION);
166 } 165 }
167 166
168 WebApplicationCacheHost* RendererWebKitClientImpl::createApplicationCacheHost( 167 WebApplicationCacheHost* RendererWebKitClientImpl::createApplicationCacheHost(
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 long long RendererWebKitClientImpl::databaseGetFileSize( 307 long long RendererWebKitClientImpl::databaseGetFileSize(
309 const WebString& file_name) { 308 const WebString& file_name) {
310 DBMessageFilter* db_message_filter = DBMessageFilter::GetInstance(); 309 DBMessageFilter* db_message_filter = DBMessageFilter::GetInstance();
311 int message_id = db_message_filter->GetUniqueID(); 310 int message_id = db_message_filter->GetUniqueID();
312 return db_message_filter->SendAndWait( 311 return db_message_filter->SendAndWait(
313 new ViewHostMsg_DatabaseGetFileSize( 312 new ViewHostMsg_DatabaseGetFileSize(
314 FilePath(webkit_glue::WebStringToFilePathString(file_name)), 313 FilePath(webkit_glue::WebStringToFilePathString(file_name)),
315 message_id), 314 message_id),
316 message_id, 0LL); 315 message_id, 0LL);
317 } 316 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.h ('k') | chrome/renderer/renderer_webstoragearea_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698