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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 10453037: Deprecate FileUtilities::getFileSize and getFileModifiedTime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/file_utilities_messages.h ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 580b11c185bde219805bf326b93efba279a47a99..e83287251df0a535f171f53070d58cd659a569b8 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -114,9 +114,6 @@ class RendererWebKitPlatformSupportImpl::MimeRegistry
class RendererWebKitPlatformSupportImpl::FileUtilities
: public webkit_glue::WebFileUtilitiesImpl {
public:
- virtual bool getFileSize(const WebKit::WebString& path, long long& result);
- virtual bool getFileModificationTime(const WebKit::WebString& path,
- double& result);
virtual bool getFileInfo(const WebString& path, WebFileInfo& result);
virtual base::PlatformFile openFile(const WebKit::WebString& path,
int mode);
@@ -409,32 +406,6 @@ RendererWebKitPlatformSupportImpl::MimeRegistry::preferredExtensionForMIMEType(
//------------------------------------------------------------------------------
-bool RendererWebKitPlatformSupportImpl::FileUtilities::getFileSize(
- const WebString& path, long long& result) {
- if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileSize(
- webkit_glue::WebStringToFilePath(path),
- reinterpret_cast<int64*>(&result)))) {
- return result >= 0;
- }
-
- result = -1;
- return false;
-}
-
-bool RendererWebKitPlatformSupportImpl::FileUtilities::getFileModificationTime(
- const WebString& path,
- double& result) {
- base::Time time;
- if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileModificationTime(
- webkit_glue::WebStringToFilePath(path), &time))) {
- result = time.ToDoubleT();
- return !time.is_null();
- }
-
- result = 0;
- return false;
-}
-
bool RendererWebKitPlatformSupportImpl::FileUtilities::getFileInfo(
const WebString& path,
WebFileInfo& web_file_info) {
« no previous file with comments | « content/common/file_utilities_messages.h ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698