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 #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 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "webkit/appcache/appcache_export.h" | 14 #include "webkit/appcache/appcache_export.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 class URLRequest; | 17 class URLRequest; |
18 } // namespace net | 18 } // namespace net |
19 | 19 |
20 namespace appcache { | 20 namespace appcache { |
21 | 21 |
22 // Defines constants, types, and abstract classes used in the main | 22 // Defines constants, types, and abstract classes used in the main |
23 // process and in child processes. | 23 // process and in child processes. |
24 extern const char kManifestMimeType[]; | |
25 | 24 |
26 static const int kNoHostId = 0; | 25 static const int kNoHostId = 0; |
27 static const int64 kNoCacheId = 0; | 26 static const int64 kNoCacheId = 0; |
28 static const int64 kNoResponseId = 0; | 27 static const int64 kNoResponseId = 0; |
29 static const int64 kUnknownCacheId = -1; | 28 static const int64 kUnknownCacheId = -1; |
30 | 29 |
31 enum Status { | 30 enum Status { |
32 UNCACHED, | 31 UNCACHED, |
33 IDLE, | 32 IDLE, |
34 CHECKING, | 33 CHECKING, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 148 |
150 bool IsSchemeSupported(const GURL& url); | 149 bool IsSchemeSupported(const GURL& url); |
151 bool IsMethodSupported(const std::string& method); | 150 bool IsMethodSupported(const std::string& method); |
152 bool IsSchemeAndMethodSupported(const net::URLRequest* request); | 151 bool IsSchemeAndMethodSupported(const net::URLRequest* request); |
153 | 152 |
154 APPCACHE_EXPORT extern const FilePath::CharType kAppCacheDatabaseName[]; | 153 APPCACHE_EXPORT extern const FilePath::CharType kAppCacheDatabaseName[]; |
155 | 154 |
156 } // namespace | 155 } // namespace |
157 | 156 |
158 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 157 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
OLD | NEW |