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

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

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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_BROWSER_APPCACHE_APPCACHE_ENTRY_H_ 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_ 6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_
7 7
8 #include "webkit/common/appcache/appcache_interfaces.h" 8 #include "webkit/common/appcache/appcache_interfaces.h"
9 9
10 namespace appcache { 10 namespace appcache {
(...skipping 23 matching lines...) Expand all
34 : types_(type), response_id_(kNoResponseId), response_size_(0) {} 34 : types_(type), response_id_(kNoResponseId), response_size_(0) {}
35 35
36 AppCacheEntry(int type, int64 response_id) 36 AppCacheEntry(int type, int64 response_id)
37 : types_(type), response_id_(response_id), response_size_(0) {} 37 : types_(type), response_id_(response_id), response_size_(0) {}
38 38
39 AppCacheEntry(int type, int64 response_id, int64 response_size) 39 AppCacheEntry(int type, int64 response_id, int64 response_size)
40 : types_(type), response_id_(response_id), response_size_(response_size) {} 40 : types_(type), response_id_(response_id), response_size_(response_size) {}
41 41
42 int types() const { return types_; } 42 int types() const { return types_; }
43 void add_types(int added_types) { types_ |= added_types; } 43 void add_types(int added_types) { types_ |= added_types; }
44 void clear_types(int cleared_types) { types_ &= !cleared_types; }
44 bool IsMaster() const { return (types_ & MASTER) != 0; } 45 bool IsMaster() const { return (types_ & MASTER) != 0; }
45 bool IsManifest() const { return (types_ & MANIFEST) != 0; } 46 bool IsManifest() const { return (types_ & MANIFEST) != 0; }
46 bool IsExplicit() const { return (types_ & EXPLICIT) != 0; } 47 bool IsExplicit() const { return (types_ & EXPLICIT) != 0; }
47 bool IsForeign() const { return (types_ & FOREIGN) != 0; } 48 bool IsForeign() const { return (types_ & FOREIGN) != 0; }
48 bool IsFallback() const { return (types_ & FALLBACK) != 0; } 49 bool IsFallback() const { return (types_ & FALLBACK) != 0; }
49 bool IsIntercept() const { return (types_ & INTERCEPT) != 0; } 50 bool IsIntercept() const { return (types_ & INTERCEPT) != 0; }
50 bool IsExecutable() const { return (types_ & EXECUTABLE) != 0; } 51 bool IsExecutable() const { return (types_ & EXECUTABLE) != 0; }
51 52
52 int64 response_id() const { return response_id_; } 53 int64 response_id() const { return response_id_; }
53 void set_response_id(int64 id) { response_id_ = id; } 54 void set_response_id(int64 id) { response_id_ = id; }
54 bool has_response_id() const { return response_id_ != kNoResponseId; } 55 bool has_response_id() const { return response_id_ != kNoResponseId; }
55 56
56 int64 response_size() const { return response_size_; } 57 int64 response_size() const { return response_size_; }
57 void set_response_size(int64 size) { response_size_ = size; } 58 void set_response_size(int64 size) { response_size_ = size; }
58 59
59 private: 60 private:
60 int types_; 61 int types_;
61 int64 response_id_; 62 int64 response_id_;
62 int64 response_size_; 63 int64 response_size_;
63 }; 64 };
64 65
65 } // namespace appcache 66 } // namespace appcache
66 67
67 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_ 68 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_backend_impl.cc ('k') | webkit/browser/appcache/appcache_executable_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698