1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
10 #include "base/time/time.h"
11 #include "content/common/content_export.h"
16 static const int kAppCacheNoHostId
= 0;
17 static const int64 kAppCacheNoCacheId
= 0;
18 static const int64 kAppCacheNoResponseId
= 0;
19 static const int64 kAppCacheUnknownCacheId
= -1;
22 APPCACHE_STATUS_UNCACHED
,
24 APPCACHE_STATUS_CHECKING
,
25 APPCACHE_STATUS_DOWNLOADING
,
26 APPCACHE_STATUS_UPDATE_READY
,
27 APPCACHE_STATUS_OBSOLETE
,
28 APPCACHE_STATUS_LAST
= APPCACHE_STATUS_OBSOLETE
31 struct CONTENT_EXPORT AppCacheInfo
{
36 base::Time creation_time
;
37 base::Time last_update_time
;
38 base::Time last_access_time
;
41 AppCacheStatus status
;
46 typedef std::vector
<AppCacheInfo
> AppCacheInfoVector
;
50 #endif // CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_