| OLD | NEW |
| 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 CONTENT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_ |
| 6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_ |
| 7 | 7 |
| 8 #include "webkit/common/appcache/appcache_interfaces.h" | 8 #include "content/common/appcache_interfaces.h" |
| 9 | 9 |
| 10 namespace appcache { | 10 namespace content { |
| 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 // Note: These bit values are stored on disk. |
| 20 enum Type { | 20 enum Type { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 int64 response_size() const { return response_size_; } | 56 int64 response_size() const { return response_size_; } |
| 57 void set_response_size(int64 size) { response_size_ = size; } | 57 void set_response_size(int64 size) { response_size_ = size; } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 int types_; | 60 int types_; |
| 61 int64 response_id_; | 61 int64 response_id_; |
| 62 int64 response_size_; | 62 int64 response_size_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace appcache | 65 } // namespace content |
| 66 | 66 |
| 67 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_ | 67 #endif // WEBKIT_APPCACHE_APPCACHE_RESOURCE_H_ |
| OLD | NEW |