Disable signin-to-Chrome when using Guest profile.
[chromium-blink-merge.git] / content / child / webfileutilities_impl.h
blobc0119b6b8e725b5e1ee93ef8d6dc1995f28933a9
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
6 #define CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
8 #include "base/platform_file.h"
9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebFileInfo.h"
11 #include "third_party/WebKit/public/platform/WebFileUtilities.h"
13 namespace content {
15 class CONTENT_EXPORT WebFileUtilitiesImpl
16 : NON_EXPORTED_BASE(public blink::WebFileUtilities) {
17 public:
18 WebFileUtilitiesImpl();
19 virtual ~WebFileUtilitiesImpl();
21 // WebFileUtilities methods:
22 virtual bool getFileInfo(const blink::WebString& path,
23 blink::WebFileInfo& result);
24 virtual blink::WebString directoryName(const blink::WebString& path);
25 virtual blink::WebString baseName(const blink::WebString& path);
26 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);
31 void set_sandbox_enabled(bool sandbox_enabled) {
32 sandbox_enabled_ = sandbox_enabled;
35 protected:
36 bool sandbox_enabled_;
39 } // namespace content
41 #endif // CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_