| 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_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 result = -1; | 418 result = -1; |
| 419 return false; | 419 return false; |
| 420 } | 420 } |
| 421 | 421 |
| 422 void RendererWebKitPlatformSupportImpl::FileUtilities::revealFolderInOS( | 422 void RendererWebKitPlatformSupportImpl::FileUtilities::revealFolderInOS( |
| 423 const WebString& path) { | 423 const WebString& path) { |
| 424 FilePath file_path(webkit_glue::WebStringToFilePath(path)); | 424 FilePath file_path(webkit_glue::WebStringToFilePath(path)); |
| 425 bool res = file_util::AbsolutePath(&file_path); | 425 bool res = file_util::AbsolutePath(&file_path); |
| 426 DCHECK(res); | 426 DCHECK(res); |
| 427 RenderThreadImpl::current()->Send( | 427 RenderThreadImpl::current()->Send( |
| 428 new ViewHostMsg_RevealFolderInOS(file_path)); | 428 new FileUtilitiesMsg_RevealFolderInOS(file_path)); |
| 429 } | 429 } |
| 430 | 430 |
| 431 bool RendererWebKitPlatformSupportImpl::FileUtilities::getFileModificationTime( | 431 bool RendererWebKitPlatformSupportImpl::FileUtilities::getFileModificationTime( |
| 432 const WebString& path, | 432 const WebString& path, |
| 433 double& result) { | 433 double& result) { |
| 434 base::Time time; | 434 base::Time time; |
| 435 if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileModificationTime( | 435 if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileModificationTime( |
| 436 webkit_glue::WebStringToFilePath(path), &time))) { | 436 webkit_glue::WebStringToFilePath(path), &time))) { |
| 437 result = time.ToDoubleT(); | 437 result = time.ToDoubleT(); |
| 438 return !time.is_null(); | 438 return !time.is_null(); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 DCHECK(render_thread); | 725 DCHECK(render_thread); |
| 726 if (!render_thread) | 726 if (!render_thread) |
| 727 return NULL; | 727 return NULL; |
| 728 return render_thread->CreateMediaStreamCenter(client); | 728 return render_thread->CreateMediaStreamCenter(client); |
| 729 } | 729 } |
| 730 | 730 |
| 731 GpuChannelHostFactory* | 731 GpuChannelHostFactory* |
| 732 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 732 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
| 733 return RenderThreadImpl::current(); | 733 return RenderThreadImpl::current(); |
| 734 } | 734 } |
| OLD | NEW |