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

Side by Side Diff: webkit/glue/webfileutilities_impl.h

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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef WEBFILEUTILITIES_IMPL_H_ 5 #ifndef WEBFILEUTILITIES_IMPL_H_
6 #define WEBFILEUTILITIES_IMPL_H_ 6 #define WEBFILEUTILITIES_IMPL_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileUtilities.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileUtilities.h"
11 #include "webkit/glue/webkit_glue_export.h" 11 #include "webkit/glue/webkit_glue_export.h"
12 12
13 namespace webkit_glue { 13 namespace webkit_glue {
14 14
15 class WEBKIT_GLUE_EXPORT WebFileUtilitiesImpl : 15 class WEBKIT_GLUE_EXPORT WebFileUtilitiesImpl :
16 NON_EXPORTED_BASE(public WebKit::WebFileUtilities) { 16 NON_EXPORTED_BASE(public WebKit::WebFileUtilities) {
17 public: 17 public:
18 WebFileUtilitiesImpl(); 18 WebFileUtilitiesImpl();
19 virtual ~WebFileUtilitiesImpl(); 19 virtual ~WebFileUtilitiesImpl();
20 20
21 // WebFileUtilities methods: 21 // WebFileUtilities methods:
22 virtual bool fileExists(const WebKit::WebString& path); 22 virtual bool fileExists(const WebKit::WebString& path);
23 virtual bool deleteFile(const WebKit::WebString& path); 23 virtual bool deleteFile(const WebKit::WebString& path);
24 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); 24 virtual bool deleteEmptyDirectory(const WebKit::WebString& path);
25 virtual bool getFileSize(const WebKit::WebString& path, long long& result);
26 virtual bool getFileModificationTime(
27 const WebKit::WebString& path,
28 double& result);
29 virtual bool getFileInfo( 25 virtual bool getFileInfo(
30 const WebKit::WebString& path, 26 const WebKit::WebString& path,
31 WebKit::WebFileInfo& result); 27 WebKit::WebFileInfo& result);
32 virtual WebKit::WebString directoryName(const WebKit::WebString& path); 28 virtual WebKit::WebString directoryName(const WebKit::WebString& path);
33 virtual WebKit::WebString pathByAppendingComponent( 29 virtual WebKit::WebString pathByAppendingComponent(
34 const WebKit::WebString& path, const WebKit::WebString& component); 30 const WebKit::WebString& path, const WebKit::WebString& component);
35 virtual bool makeAllDirectories(const WebKit::WebString& path); 31 virtual bool makeAllDirectories(const WebKit::WebString& path);
36 virtual WebKit::WebString getAbsolutePath(const WebKit::WebString& path); 32 virtual WebKit::WebString getAbsolutePath(const WebKit::WebString& path);
37 virtual bool isDirectory(const WebKit::WebString& path); 33 virtual bool isDirectory(const WebKit::WebString& path);
38 virtual WebKit::WebURL filePathToURL(const WebKit::WebString& path); 34 virtual WebKit::WebURL filePathToURL(const WebKit::WebString& path);
(...skipping 12 matching lines...) Expand all
51 sandbox_enabled_ = sandbox_enabled; 47 sandbox_enabled_ = sandbox_enabled;
52 } 48 }
53 49
54 protected: 50 protected:
55 bool sandbox_enabled_; 51 bool sandbox_enabled_;
56 }; 52 };
57 53
58 } // namespace webkit_glue 54 } // namespace webkit_glue
59 55
60 #endif // WEBFILEUTILITIES_IMPL_H_ 56 #endif // WEBFILEUTILITIES_IMPL_H_
OLDNEW
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.cc ('k') | webkit/glue/webfileutilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698