OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/fileapi/file_system_util.h" | 5 #include "webkit/fileapi/file_system_util.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
18 #include "webkit/fileapi/file_system_types.h" | 18 #include "webkit/fileapi/file_system_types.h" |
19 | 19 |
20 namespace fileapi { | 20 namespace fileapi { |
21 | 21 |
22 const char kPersistentDir[] = "/persistent/"; | 22 const char kPersistentDir[] = "/persistent/"; |
23 const char kTemporaryDir[] = "/temporary/"; | 23 const char kTemporaryDir[] = "/temporary/"; |
24 const char kExternalDir[] = "/external/"; | 24 const char kExternalDir[] = "/external/"; |
25 | 25 |
26 const char kPersistentName[] = "Persistent"; | 26 const char kPersistentName[] = "Persistent"; |
27 const char kTemporaryName[] = "Temporary"; | 27 const char kTemporaryName[] = "Temporary"; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // We need this work-around for file:/// URIs as | 157 // We need this work-around for file:/// URIs as |
158 // createFromDatabaseIdentifier returns empty origin_url for them. | 158 // createFromDatabaseIdentifier returns empty origin_url for them. |
159 if (origin_url.spec().empty() && | 159 if (origin_url.spec().empty() && |
160 origin_identifier.find("file__") == 0) | 160 origin_identifier.find("file__") == 0) |
161 return GURL("file:///"); | 161 return GURL("file:///"); |
162 return origin_url; | 162 return origin_url; |
163 } | 163 } |
164 | 164 |
165 } // namespace fileapi | 165 } // namespace fileapi |
OLD | NEW |