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: content/renderer/renderer_blink_platform_impl.cc

Issue 1006423008: Add SetFileSize() IPC for WebSQL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name, 604 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name,
605 sync_message_filter_.get()); 605 sync_message_filter_.get());
606 } 606 }
607 607
608 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( 608 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin(
609 const WebString& origin_identifier) { 609 const WebString& origin_identifier) {
610 return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier, 610 return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier,
611 sync_message_filter_.get()); 611 sync_message_filter_.get());
612 } 612 }
613 613
614 bool RendererBlinkPlatformImpl::databaseSetFileSize(
615 const WebString& vfs_file_name, long long size) {
616 return DatabaseUtil::DatabaseSetFileSize(
617 vfs_file_name, size, sync_message_filter_.get());
618 }
619
614 bool RendererBlinkPlatformImpl::canAccelerate2dCanvas() { 620 bool RendererBlinkPlatformImpl::canAccelerate2dCanvas() {
615 RenderThreadImpl* thread = RenderThreadImpl::current(); 621 RenderThreadImpl* thread = RenderThreadImpl::current();
616 GpuChannelHost* host = thread->EstablishGpuChannelSync( 622 GpuChannelHost* host = thread->EstablishGpuChannelSync(
617 CAUSE_FOR_GPU_LAUNCH_CANVAS_2D); 623 CAUSE_FOR_GPU_LAUNCH_CANVAS_2D);
618 if (!host) 624 if (!host)
619 return false; 625 return false;
620 626
621 return host->gpu_info().SupportsAccelerated2dCanvas(); 627 return host->gpu_info().SupportsAccelerated2dCanvas();
622 } 628 }
623 629
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 //------------------------------------------------------------------------------ 1207 //------------------------------------------------------------------------------
1202 1208
1203 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1209 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1204 const blink::WebBatteryStatus& status) { 1210 const blink::WebBatteryStatus& status) {
1205 if (!g_test_battery_status_listener) 1211 if (!g_test_battery_status_listener)
1206 return; 1212 return;
1207 g_test_battery_status_listener->updateBatteryStatus(status); 1213 g_test_battery_status_listener->updateBatteryStatus(status);
1208 } 1214 }
1209 1215
1210 } // namespace content 1216 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698