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

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

Issue 15754005: Fix dependency: make file_system_util not depend on FileSystemURL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/fileapi/file_system_url_unittest.cc ('k') | webkit/fileapi/file_system_util.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 (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 WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h " 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h "
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h"
15 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
16 #include "webkit/quota/quota_types.h" 16 #include "webkit/quota/quota_types.h"
17 #include "webkit/storage/webkit_storage_export.h" 17 #include "webkit/storage/webkit_storage_export.h"
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace fileapi { 21 namespace fileapi {
22 22
23 class FileSystemURL;
24
25 extern const char kPersistentDir[]; 23 extern const char kPersistentDir[];
26 extern const char kTemporaryDir[]; 24 extern const char kTemporaryDir[];
27 extern const char kExternalDir[]; 25 extern const char kExternalDir[];
28 extern const char kIsolatedDir[]; 26 extern const char kIsolatedDir[];
29 extern const char kTestDir[]; 27 extern const char kTestDir[];
30 28
31 class WEBKIT_STORAGE_EXPORT VirtualPath { 29 class WEBKIT_STORAGE_EXPORT VirtualPath {
32 public: 30 public:
33 static const base::FilePath::CharType kRoot[]; 31 static const base::FilePath::CharType kRoot[];
34 static const base::FilePath::CharType kSeparator; 32 static const base::FilePath::CharType kSeparator;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 std::string* filesystem_id); 136 std::string* filesystem_id);
139 137
140 // Returns the root URI for an isolated filesystem for origin |origin_url| 138 // Returns the root URI for an isolated filesystem for origin |origin_url|
141 // and |filesystem_id|. If the |optional_root_name| is given the resulting 139 // and |filesystem_id|. If the |optional_root_name| is given the resulting
142 // root URI will point to the subfolder within the isolated filesystem. 140 // root URI will point to the subfolder within the isolated filesystem.
143 WEBKIT_STORAGE_EXPORT std::string GetIsolatedFileSystemRootURIString( 141 WEBKIT_STORAGE_EXPORT std::string GetIsolatedFileSystemRootURIString(
144 const GURL& origin_url, 142 const GURL& origin_url,
145 const std::string& filesystem_id, 143 const std::string& filesystem_id,
146 const std::string& optional_root_name); 144 const std::string& optional_root_name);
147 145
148 // Returns true if |url1| and |url2| belong to the same filesystem
149 // (i.e. url1.origin() == url2.origin() && url1.type() == url2.type())
150 WEBKIT_STORAGE_EXPORT bool AreSameFileSystem(
151 const FileSystemURL& url1,
152 const FileSystemURL& url2);
153
154 } // namespace fileapi 146 } // namespace fileapi
155 147
156 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ 148 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_url_unittest.cc ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698