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

Side by Side Diff: content/child/webfileutilities_impl.h

Issue 207503002: Remove PlatformFile from WebFileUtilitiesImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove methods Created 6 years, 9 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
« no previous file with comments | « no previous file | content/child/webfileutilities_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
6 #define CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 6 #define CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
7 7
8 #include "base/platform_file.h"
9 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebFileInfo.h" 9 #include "third_party/WebKit/public/platform/WebFileInfo.h"
11 #include "third_party/WebKit/public/platform/WebFileUtilities.h" 10 #include "third_party/WebKit/public/platform/WebFileUtilities.h"
12 11
13 namespace content { 12 namespace content {
14 13
15 class CONTENT_EXPORT WebFileUtilitiesImpl 14 class CONTENT_EXPORT WebFileUtilitiesImpl
16 : NON_EXPORTED_BASE(public blink::WebFileUtilities) { 15 : NON_EXPORTED_BASE(public blink::WebFileUtilities) {
17 public: 16 public:
18 WebFileUtilitiesImpl(); 17 WebFileUtilitiesImpl();
19 virtual ~WebFileUtilitiesImpl(); 18 virtual ~WebFileUtilitiesImpl();
20 19
21 // WebFileUtilities methods: 20 // WebFileUtilities methods:
22 virtual bool getFileInfo(const blink::WebString& path, 21 virtual bool getFileInfo(const blink::WebString& path,
23 blink::WebFileInfo& result); 22 blink::WebFileInfo& result);
24 virtual blink::WebString directoryName(const blink::WebString& path); 23 virtual blink::WebString directoryName(const blink::WebString& path);
25 virtual blink::WebString baseName(const blink::WebString& path); 24 virtual blink::WebString baseName(const blink::WebString& path);
26 virtual blink::WebURL filePathToURL(const blink::WebString& path); 25 virtual blink::WebURL filePathToURL(const blink::WebString& path);
27 virtual base::PlatformFile openFile(const blink::WebString& path, int mode);
28 virtual void closeFile(base::PlatformFile& handle);
29 virtual int readFromFile(base::PlatformFile handle, char* data, int length);
30 26
31 void set_sandbox_enabled(bool sandbox_enabled) { 27 void set_sandbox_enabled(bool sandbox_enabled) {
32 sandbox_enabled_ = sandbox_enabled; 28 sandbox_enabled_ = sandbox_enabled;
33 } 29 }
34 30
35 protected: 31 protected:
36 bool sandbox_enabled_; 32 bool sandbox_enabled_;
37 }; 33 };
38 34
39 } // namespace content 35 } // namespace content
40 36
41 #endif // CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 37 #endif // CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/webfileutilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698