OLD | NEW |
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_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 5 #ifndef WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Useful string constants. | 169 // Useful string constants. |
170 // Note: These are also defined elsewhere in the chrome code base in | 170 // Note: These are also defined elsewhere in the chrome code base in |
171 // url_contants.h .cc, however the appcache library doesn't not have | 171 // url_contants.h .cc, however the appcache library doesn't not have |
172 // any dependencies on the chrome library, so we can't use them in here. | 172 // any dependencies on the chrome library, so we can't use them in here. |
173 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpScheme[]; | 173 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpScheme[]; |
174 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpsScheme[]; | 174 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpsScheme[]; |
175 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpGETMethod[]; | 175 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpGETMethod[]; |
176 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpHEADMethod[]; | 176 WEBKIT_STORAGE_COMMON_EXPORT extern const char kHttpHEADMethod[]; |
177 | 177 |
178 // CommandLine flag to turn this experimental feature on. | 178 // CommandLine flag to turn this experimental feature on. |
179 WEBKIT_STORAGE_COMMON_EXPORT extern const char kEnableExecutableHandlers[]; | 179 namespace { |
| 180 const char kEnableExecutableHandlers[] = "enable-appcache-executable-handlers"; |
| 181 } |
180 | 182 |
181 WEBKIT_STORAGE_COMMON_EXPORT void AddSupportedScheme(const char* scheme); | 183 WEBKIT_STORAGE_COMMON_EXPORT void AddSupportedScheme(const char* scheme); |
182 | 184 |
183 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeSupported(const GURL& url); | 185 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeSupported(const GURL& url); |
184 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); | 186 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); |
185 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( | 187 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( |
186 const net::URLRequest* request); | 188 const net::URLRequest* request); |
187 | 189 |
188 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType | 190 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType |
189 kAppCacheDatabaseName[]; | 191 kAppCacheDatabaseName[]; |
190 | 192 |
191 } // namespace | 193 } // namespace |
192 | 194 |
193 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 195 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
OLD | NEW |