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

Side by Side Diff: webkit/appcache/appcache_entry.h

Issue 8949001: Fix some loose ends around recently introduced AppCache INTERCEPT namespaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_ENTRY_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_ENTRY_H_
6 #define WEBKIT_APPCACHE_APPCACHE_ENTRY_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_ENTRY_H_
7 7
8 #include "webkit/appcache/appcache_interfaces.h" 8 #include "webkit/appcache/appcache_interfaces.h"
9 9
10 namespace appcache { 10 namespace appcache {
11 11
12 // A cached entry is identified by a URL and is classified into one 12 // A cached entry is identified by a URL and is classified into one
13 // (or more) categories. URL is not stored here as this class is stored 13 // (or more) categories. URL is not stored here as this class is stored
14 // with the URL as a map key or the user of this class already knows the URL. 14 // with the URL as a map key or the user of this class already knows the URL.
15 class AppCacheEntry { 15 class AppCacheEntry {
16 public: 16 public:
17 17
18 // An entry can be of more than one type so use a bitmask. 18 // An entry can be of more than one type so use a bitmask.
19 // Note: These bit values are stored on disk.
19 enum Type { 20 enum Type {
20 MASTER = 1 << 0, 21 MASTER = 1 << 0,
21 MANIFEST = 1 << 1, 22 MANIFEST = 1 << 1,
22 EXPLICIT = 1 << 2, 23 EXPLICIT = 1 << 2,
23 FOREIGN = 1 << 3, 24 FOREIGN = 1 << 3,
24 FALLBACK = 1 << 4, 25 FALLBACK = 1 << 4,
25 INTERCEPT = 1 << 5, 26 INTERCEPT = 1 << 5,
26 }; 27 };
27 28
28 AppCacheEntry() 29 AppCacheEntry()
(...skipping 26 matching lines...) Expand all
55 56
56 private: 57 private:
57 int types_; 58 int types_;
58 int64 response_id_; 59 int64 response_id_;
59 int64 response_size_; 60 int64 response_size_;
60 }; 61 };
61 62
62 } // namespace appcache 63 } // namespace appcache
63 64
64 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_ 65 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698