Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: content/public/common/appcache_info.h

Issue 358993007: Fix nits in content/browser/appcache/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 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_PUBLIC_COMMON_APPCACHE_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 static const int kAppCacheNoHostId = 0; 16 static const int kAppCacheNoHostId = 0;
17 static const int64 kAppCacheNoCacheId = 0; 17 static const int64 kAppCacheNoCacheId = 0;
18 static const int64 kAppCacheNoResponseId = 0; 18 static const int64 kAppCacheNoResponseId = 0;
19 static const int64 kAppCacheUnknownCacheId = -1; 19 static const int64 kAppCacheUnknownCacheId = -1;
20 20
21 enum AppCacheStatus { 21 enum AppCacheStatus {
22 APPCACHE_STATUS_UNCACHED, 22 APPCACHE_STATUS_UNCACHED,
23 APPCACHE_STATUS_IDLE, 23 APPCACHE_STATUS_IDLE,
24 APPCACHE_STATUS_CHECKING, 24 APPCACHE_STATUS_CHECKING,
25 APPCACHE_STATUS_DOWNLOADING, 25 APPCACHE_STATUS_DOWNLOADING,
26 APPCACHE_STATUS_UPDATE_READY, 26 APPCACHE_STATUS_UPDATE_READY,
27 APPCACHE_STATUS_OBSOLETE, 27 APPCACHE_STATUS_OBSOLETE,
28 APPCACHE_STATUS_LAST = APPCACHE_STATUS_OBSOLETE 28 APPCACHE_STATUS_LAST = APPCACHE_STATUS_OBSOLETE
29 }; 29 };
30 30
31 struct CONTENT_EXPORT AppCacheInfo { 31 struct CONTENT_EXPORT AppCacheInfo {
32 AppCacheInfo(); 32 AppCacheInfo();
33 ~AppCacheInfo(); 33 ~AppCacheInfo();
34 34
35 GURL manifest_url; 35 GURL manifest_url;
36 base::Time creation_time; 36 base::Time creation_time;
37 base::Time last_update_time; 37 base::Time last_update_time;
38 base::Time last_access_time; 38 base::Time last_access_time;
39 int64 cache_id; 39 int64 cache_id;
40 int64 group_id; 40 int64 group_id;
41 AppCacheStatus status; 41 AppCacheStatus status;
42 int64 size; 42 int64 size;
43 bool is_complete; 43 bool is_complete;
44 }; 44 };
45 45
46 typedef std::vector<AppCacheInfo> AppCacheInfoVector; 46 typedef std::vector<AppCacheInfo> AppCacheInfoVector;
47 47
48 } // namespace 48 } // namespace
49 49
50 #endif // CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_ 50 #endif // CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
OLDNEW
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698