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

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

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build file fiddling Created 6 years, 6 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
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
7
8 #include <vector>
9
10 #include "base/time/time.h"
11 #include "content/common/content_export.h"
12 #include "url/gurl.h"
13
14 namespace content {
15
16 // Defines constants, types, and abstract classes used in the main
17 // process and in child processes.
michaeln 2014/06/20 22:21:11 This comment is out of place here, maybe delete th
18
19 static const int kAppCacheNoHostId = 0;
20 static const int64 kAppCacheNoCacheId = 0;
21 static const int64 kAppCacheNoResponseId = 0;
22 static const int64 kAppCacheUnknownCacheId = -1;
23
24 enum AppCacheStatus {
25 APPCACHE_STATUS_UNCACHED,
26 APPCACHE_STATUS_IDLE,
27 APPCACHE_STATUS_CHECKING,
28 APPCACHE_STATUS_DOWNLOADING,
29 APPCACHE_STATUS_UPDATE_READY,
30 APPCACHE_STATUS_OBSOLETE,
31 APPCACHE_STATUS_LAST = APPCACHE_STATUS_OBSOLETE
32 };
33
34 struct CONTENT_EXPORT AppCacheInfo {
35 AppCacheInfo();
36 ~AppCacheInfo();
37
38 GURL manifest_url;
39 base::Time creation_time;
40 base::Time last_update_time;
41 base::Time last_access_time;
42 int64 cache_id;
43 int64 group_id;
44 AppCacheStatus status;
45 int64 size;
46 bool is_complete;
47 };
48
49 typedef std::vector<AppCacheInfo> AppCacheInfoVector;
50
51 } // namespace
52
53 #endif // CONTENT_PUBLIC_COMMON_APPCACHE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698