| OLD | NEW |
| 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 } | 607 } |
| 608 | 608 |
| 609 long long RendererBlinkPlatformImpl::databaseGetFileSize( | 609 long long RendererBlinkPlatformImpl::databaseGetFileSize( |
| 610 const WebString& vfs_file_name) { | 610 const WebString& vfs_file_name) { |
| 611 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name, | 611 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name, |
| 612 sync_message_filter_.get()); | 612 sync_message_filter_.get()); |
| 613 } | 613 } |
| 614 | 614 |
| 615 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( | 615 long long RendererBlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( |
| 616 const blink::WebSecurityOrigin& origin) { | 616 const blink::WebSecurityOrigin& origin) { |
| 617 // TODO(jsbell): Pass url::Origin over IPC instead of database | 617 return DatabaseUtil::DatabaseGetSpaceAvailable(origin, |
| 618 // identifier/GURL. https://crbug.com/591482 | 618 sync_message_filter_.get()); |
| 619 return DatabaseUtil::DatabaseGetSpaceAvailable(WebString::fromUTF8( | |
| 620 storage::GetIdentifierFromOrigin(WebSecurityOriginToGURL(origin))), | |
| 621 sync_message_filter_.get()); | |
| 622 } | 619 } |
| 623 | 620 |
| 624 bool RendererBlinkPlatformImpl::databaseSetFileSize( | 621 bool RendererBlinkPlatformImpl::databaseSetFileSize( |
| 625 const WebString& vfs_file_name, long long size) { | 622 const WebString& vfs_file_name, long long size) { |
| 626 return DatabaseUtil::DatabaseSetFileSize( | 623 return DatabaseUtil::DatabaseSetFileSize( |
| 627 vfs_file_name, size, sync_message_filter_.get()); | 624 vfs_file_name, size, sync_message_filter_.get()); |
| 628 } | 625 } |
| 629 | 626 |
| 630 WebString RendererBlinkPlatformImpl::databaseCreateOriginIdentifier( | 627 WebString RendererBlinkPlatformImpl::databaseCreateOriginIdentifier( |
| 631 const blink::WebSecurityOrigin& origin) { | 628 const blink::WebSecurityOrigin& origin) { |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 } | 1260 } |
| 1264 | 1261 |
| 1265 //------------------------------------------------------------------------------ | 1262 //------------------------------------------------------------------------------ |
| 1266 | 1263 |
| 1267 blink::WebTrialTokenValidator* | 1264 blink::WebTrialTokenValidator* |
| 1268 RendererBlinkPlatformImpl::trialTokenValidator() { | 1265 RendererBlinkPlatformImpl::trialTokenValidator() { |
| 1269 return &trial_token_validator_; | 1266 return &trial_token_validator_; |
| 1270 } | 1267 } |
| 1271 | 1268 |
| 1272 } // namespace content | 1269 } // namespace content |
| OLD | NEW |