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

Unified Diff: content/worker/worker_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/renderer/renderer_webkitplatformsupport_impl.cc ('k') | webkit/glue/webfileutilities_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/worker_webkitplatformsupport_impl.cc
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
index 2f03da85c172a1310c989812f0c9cc76caf5cd77..bebcd6749336c86df301542372e1cde9e1646c54 100644
--- a/content/worker/worker_webkitplatformsupport_impl.cc
+++ b/content/worker/worker_webkitplatformsupport_impl.cc
@@ -43,9 +43,6 @@ using WebKit::WebURL;
class WorkerWebKitPlatformSupportImpl::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);
};
@@ -59,32 +56,6 @@ static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg) {
return sync_msg_filter->Send(msg);
}
-bool WorkerWebKitPlatformSupportImpl::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 WorkerWebKitPlatformSupportImpl::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 WorkerWebKitPlatformSupportImpl::FileUtilities::getFileInfo(
const WebString& path,
WebFileInfo& web_file_info) {
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | webkit/glue/webfileutilities_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698