| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_APPCACHE_APPCACHE_INTERFACES_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 class GURL; | 12 class GURL; |
| 13 class URLRequest; | 13 class URLRequest; |
| 14 | 14 |
| 15 namespace appcache { | 15 namespace appcache { |
| 16 | 16 |
| 17 // Defines constants, types, and abstract classes used in the main | 17 // Defines constants, types, and abstract classes used in the main |
| 18 // process and in child processes. | 18 // process and in child processes. |
| 19 extern const char kManifestMimeType[]; |
| 19 | 20 |
| 20 static const int kNoHostId = 0; | 21 static const int kNoHostId = 0; |
| 21 static const int64 kNoCacheId = 0; | 22 static const int64 kNoCacheId = 0; |
| 22 static const int64 kUnknownCacheId = -1; | 23 static const int64 kUnknownCacheId = -1; |
| 23 | 24 |
| 24 enum Status { | 25 enum Status { |
| 25 UNCACHED, | 26 UNCACHED, |
| 26 IDLE, | 27 IDLE, |
| 27 CHECKING, | 28 CHECKING, |
| 28 DOWNLOADING, | 29 DOWNLOADING, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 extern const char kHttpGETMethod[]; | 82 extern const char kHttpGETMethod[]; |
| 82 extern const char kHttpHEADMethod[]; | 83 extern const char kHttpHEADMethod[]; |
| 83 | 84 |
| 84 bool IsSchemeSupported(const GURL& url); | 85 bool IsSchemeSupported(const GURL& url); |
| 85 bool IsMethodSupported(const std::string& method); | 86 bool IsMethodSupported(const std::string& method); |
| 86 bool IsSchemeAndMethodSupported(const URLRequest* request); | 87 bool IsSchemeAndMethodSupported(const URLRequest* request); |
| 87 | 88 |
| 88 } // namespace | 89 } // namespace |
| 89 | 90 |
| 90 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 91 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |