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

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

Issue 10391185: Removing FileUtilities::revealOSInFolder which is not used anymore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « webkit/glue/webfileutilities_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/glue/webfileutilities_impl.h" 5 #include "webkit/glue/webfileutilities_impl.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/base/file_stream.h" 10 #include "net/base/file_stream.h"
11 #include "net/base/net_util.h" 11 #include "net/base/net_util.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
14 #include "webkit/glue/webkit_glue.h" 14 #include "webkit/glue/webkit_glue.h"
15 15
16 using WebKit::WebString; 16 using WebKit::WebString;
17 17
18 namespace webkit_glue { 18 namespace webkit_glue {
19 19
20 WebFileUtilitiesImpl::WebFileUtilitiesImpl() 20 WebFileUtilitiesImpl::WebFileUtilitiesImpl()
21 : sandbox_enabled_(true) { 21 : sandbox_enabled_(true) {
22 } 22 }
23 23
24 WebFileUtilitiesImpl::~WebFileUtilitiesImpl() { 24 WebFileUtilitiesImpl::~WebFileUtilitiesImpl() {
25 } 25 }
26 26
27 void WebFileUtilitiesImpl::revealFolderInOS(const WebString& path) {
28 NOTREACHED();
29 }
30
31 bool WebFileUtilitiesImpl::fileExists(const WebString& path) { 27 bool WebFileUtilitiesImpl::fileExists(const WebString& path) {
32 FilePath::StringType file_path = WebStringToFilePathString(path); 28 FilePath::StringType file_path = WebStringToFilePathString(path);
33 return file_util::PathExists(FilePath(file_path)); 29 return file_util::PathExists(FilePath(file_path));
34 } 30 }
35 31
36 bool WebFileUtilitiesImpl::deleteFile(const WebString& path) { 32 bool WebFileUtilitiesImpl::deleteFile(const WebString& path) {
37 NOTREACHED(); 33 NOTREACHED();
38 return false; 34 return false;
39 } 35 }
40 36
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 int WebFileUtilitiesImpl::writeToFile(base::PlatformFile handle, 149 int WebFileUtilitiesImpl::writeToFile(base::PlatformFile handle,
154 const char* data, 150 const char* data,
155 int length) { 151 int length) {
156 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0) 152 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0)
157 return -1; 153 return -1;
158 net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE, NULL); 154 net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE, NULL);
159 return file_stream.WriteSync(data, length); 155 return file_stream.WriteSync(data, length);
160 } 156 }
161 157
162 } // namespace webkit_glue 158 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webfileutilities_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698