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

Side by Side Diff: webkit/fileapi/file_system_path_manager.h

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 static std::string GetFileSystemTypeString(fileapi::FileSystemType type); 86 static std::string GetFileSystemTypeString(fileapi::FileSystemType type);
87 87
88 // Checks if a given |name| contains any restricted names/chars in it. 88 // Checks if a given |name| contains any restricted names/chars in it.
89 bool IsRestrictedFileName(FileSystemType type, 89 bool IsRestrictedFileName(FileSystemType type,
90 const FilePath& filename); 90 const FilePath& filename);
91 91
92 SandboxMountPointProvider* sandbox_provider() const { 92 SandboxMountPointProvider* sandbox_provider() const {
93 return sandbox_provider_.get(); 93 return sandbox_provider_.get();
94 } 94 }
95 95
96 FileSystemMountPointProvider* local_provider() const {
97 return local_provider_.get();
98 }
99
96 bool is_incognito() const { 100 bool is_incognito() const {
97 return is_incognito_; 101 return is_incognito_;
98 } 102 }
99 103
100 private: 104 private:
101 const bool is_incognito_; 105 const bool is_incognito_;
102 const bool allow_file_access_from_files_; 106 const bool allow_file_access_from_files_;
103 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; 107 scoped_ptr<SandboxMountPointProvider> sandbox_provider_;
104 scoped_ptr<FileSystemMountPointProvider> local_provider_; 108 scoped_ptr<FileSystemMountPointProvider> local_provider_;
105 109
106 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); 110 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager);
107 }; 111 };
108 112
109 } // namespace fileapi 113 } // namespace fileapi
110 114
111 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ 115 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698