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 CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 5 #ifndef CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
6 #define CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 6 #define CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // Useful string constants. | 165 // Useful string constants. |
166 // Note: These are also defined elsewhere in the chrome code base in | 166 // Note: These are also defined elsewhere in the chrome code base in |
167 // url_contants.h .cc, however the content library can not have | 167 // url_contants.h .cc, however the content library can not have |
168 // any dependencies on the chrome library, so we can't use them in here. | 168 // any dependencies on the chrome library, so we can't use them in here. |
169 CONTENT_EXPORT extern const char kHttpScheme[]; | 169 CONTENT_EXPORT extern const char kHttpScheme[]; |
170 CONTENT_EXPORT extern const char kHttpsScheme[]; | 170 CONTENT_EXPORT extern const char kHttpsScheme[]; |
171 CONTENT_EXPORT extern const char kHttpGETMethod[]; | 171 CONTENT_EXPORT extern const char kHttpGETMethod[]; |
172 CONTENT_EXPORT extern const char kHttpHEADMethod[]; | 172 CONTENT_EXPORT extern const char kHttpHEADMethod[]; |
173 | 173 |
174 // CommandLine flag to turn this experimental feature on. | 174 // base::CommandLine flag to turn this experimental feature on. |
175 CONTENT_EXPORT extern const char kEnableExecutableHandlers[]; | 175 CONTENT_EXPORT extern const char kEnableExecutableHandlers[]; |
176 | 176 |
177 CONTENT_EXPORT bool IsSchemeSupportedForAppCache(const GURL& url); | 177 CONTENT_EXPORT bool IsSchemeSupportedForAppCache(const GURL& url); |
178 CONTENT_EXPORT bool IsMethodSupportedForAppCache( | 178 CONTENT_EXPORT bool IsMethodSupportedForAppCache( |
179 const std::string& method); | 179 const std::string& method); |
180 CONTENT_EXPORT bool IsSchemeAndMethodSupportedForAppCache( | 180 CONTENT_EXPORT bool IsSchemeAndMethodSupportedForAppCache( |
181 const net::URLRequest* request); | 181 const net::URLRequest* request); |
182 | 182 |
183 CONTENT_EXPORT extern const base::FilePath::CharType | 183 CONTENT_EXPORT extern const base::FilePath::CharType |
184 kAppCacheDatabaseName[]; | 184 kAppCacheDatabaseName[]; |
185 | 185 |
186 } // namespace | 186 } // namespace |
187 | 187 |
188 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 188 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
OLD | NEW |