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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual bool StartUpdate(int host_id) = 0; | 156 virtual bool StartUpdate(int host_id) = 0; |
157 virtual bool SwapCache(int host_id) = 0; | 157 virtual bool SwapCache(int host_id) = 0; |
158 virtual void GetResourceList( | 158 virtual void GetResourceList( |
159 int host_id, std::vector<AppCacheResourceInfo>* resource_infos) = 0; | 159 int host_id, std::vector<AppCacheResourceInfo>* resource_infos) = 0; |
160 | 160 |
161 protected: | 161 protected: |
162 virtual ~AppCacheBackend() {} | 162 virtual ~AppCacheBackend() {} |
163 }; | 163 }; |
164 | 164 |
165 // Useful string constants. | 165 // Useful string constants. |
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 | |
168 // any dependencies on the chrome library, so we can't use them in here. | |
169 CONTENT_EXPORT extern const char kHttpScheme[]; | |
170 CONTENT_EXPORT extern const char kHttpsScheme[]; | |
171 CONTENT_EXPORT extern const char kHttpGETMethod[]; | 166 CONTENT_EXPORT extern const char kHttpGETMethod[]; |
172 CONTENT_EXPORT extern const char kHttpHEADMethod[]; | 167 CONTENT_EXPORT extern const char kHttpHEADMethod[]; |
173 | 168 |
174 // base::CommandLine flag to turn this experimental feature on. | 169 // base::CommandLine flag to turn this experimental feature on. |
175 CONTENT_EXPORT extern const char kEnableExecutableHandlers[]; | 170 CONTENT_EXPORT extern const char kEnableExecutableHandlers[]; |
176 | 171 |
177 CONTENT_EXPORT bool IsSchemeSupportedForAppCache(const GURL& url); | 172 CONTENT_EXPORT bool IsSchemeSupportedForAppCache(const GURL& url); |
178 CONTENT_EXPORT bool IsMethodSupportedForAppCache( | 173 CONTENT_EXPORT bool IsMethodSupportedForAppCache( |
179 const std::string& method); | 174 const std::string& method); |
180 CONTENT_EXPORT bool IsSchemeAndMethodSupportedForAppCache( | 175 CONTENT_EXPORT bool IsSchemeAndMethodSupportedForAppCache( |
181 const net::URLRequest* request); | 176 const net::URLRequest* request); |
182 | 177 |
183 CONTENT_EXPORT extern const base::FilePath::CharType | 178 CONTENT_EXPORT extern const base::FilePath::CharType |
184 kAppCacheDatabaseName[]; | 179 kAppCacheDatabaseName[]; |
185 | 180 |
186 } // namespace | 181 } // namespace |
187 | 182 |
188 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 183 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
OLD | NEW |