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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1832473002: WebSQL: Use url::Origin rather than database identifiers for IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 | « content/renderer/render_view_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | 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) 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 } 644 }
645 645
646 long long RendererBlinkPlatformImpl::databaseGetFileSize( 646 long long RendererBlinkPlatformImpl::databaseGetFileSize(
647 const WebString& vfs_file_name) { 647 const WebString& vfs_file_name) {
648 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name, 648 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name,
649 sync_message_filter_.get()); 649 sync_message_filter_.get());
650 } 650 }
651 651
652 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( 652 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin(
653 const blink::WebSecurityOrigin& origin) { 653 const blink::WebSecurityOrigin& origin) {
654 // TODO(jsbell): Pass url::Origin over IPC instead of database 654 return DatabaseUtil::DatabaseGetSpaceAvailable(origin,
655 // identifier/GURL. https://crbug.com/591482 655 sync_message_filter_.get());
656 return DatabaseUtil::DatabaseGetSpaceAvailable(WebString::fromUTF8(
657 storage::GetIdentifierFromOrigin(WebSecurityOriginToGURL(origin))),
658 sync_message_filter_.get());
659 } 656 }
660 657
661 bool RendererBlinkPlatformImpl::databaseSetFileSize( 658 bool RendererBlinkPlatformImpl::databaseSetFileSize(
662 const WebString& vfs_file_name, long long size) { 659 const WebString& vfs_file_name, long long size) {
663 return DatabaseUtil::DatabaseSetFileSize( 660 return DatabaseUtil::DatabaseSetFileSize(
664 vfs_file_name, size, sync_message_filter_.get()); 661 vfs_file_name, size, sync_message_filter_.get());
665 } 662 }
666 663
667 WebString RendererBlinkPlatformImpl::databaseCreateOriginIdentifier( 664 WebString RendererBlinkPlatformImpl::databaseCreateOriginIdentifier(
668 const blink::WebSecurityOrigin& origin) { 665 const blink::WebSecurityOrigin& origin) {
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 return &trial_token_validator_; 1332 return &trial_token_validator_;
1336 } 1333 }
1337 1334
1338 void RendererBlinkPlatformImpl::workerContextCreated( 1335 void RendererBlinkPlatformImpl::workerContextCreated(
1339 const v8::Local<v8::Context>& worker) { 1336 const v8::Local<v8::Context>& worker) {
1340 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1337 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1341 worker); 1338 worker);
1342 } 1339 }
1343 1340
1344 } // namespace content 1341 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698