| 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" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 struct APPCACHE_EXPORT AppCacheInfo { | 58 struct APPCACHE_EXPORT AppCacheInfo { |
| 59 AppCacheInfo(); | 59 AppCacheInfo(); |
| 60 ~AppCacheInfo(); | 60 ~AppCacheInfo(); |
| 61 | 61 |
| 62 GURL manifest_url; | 62 GURL manifest_url; |
| 63 base::Time creation_time; | 63 base::Time creation_time; |
| 64 base::Time last_update_time; | 64 base::Time last_update_time; |
| 65 base::Time last_access_time; | 65 base::Time last_access_time; |
| 66 int64 cache_id; | 66 int64 cache_id; |
| 67 int64 group_id; |
| 67 Status status; | 68 Status status; |
| 68 int64 size; | 69 int64 size; |
| 69 bool is_complete; | 70 bool is_complete; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 typedef std::vector<AppCacheInfo> AppCacheInfoVector; | 73 typedef std::vector<AppCacheInfo> AppCacheInfoVector; |
| 73 | 74 |
| 74 // Type to hold information about a single appcache resource. | 75 // Type to hold information about a single appcache resource. |
| 75 struct APPCACHE_EXPORT AppCacheResourceInfo { | 76 struct APPCACHE_EXPORT AppCacheResourceInfo { |
| 76 AppCacheResourceInfo(); | 77 AppCacheResourceInfo(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 bool IsSchemeSupported(const GURL& url); | 150 bool IsSchemeSupported(const GURL& url); |
| 150 bool IsMethodSupported(const std::string& method); | 151 bool IsMethodSupported(const std::string& method); |
| 151 bool IsSchemeAndMethodSupported(const net::URLRequest* request); | 152 bool IsSchemeAndMethodSupported(const net::URLRequest* request); |
| 152 | 153 |
| 153 APPCACHE_EXPORT extern const FilePath::CharType kAppCacheDatabaseName[]; | 154 APPCACHE_EXPORT extern const FilePath::CharType kAppCacheDatabaseName[]; |
| 154 | 155 |
| 155 } // namespace | 156 } // namespace |
| 156 | 157 |
| 157 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 158 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |