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_interfaces.h

Issue 3522004: FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to non-POD structs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INTERFACES_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_
6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 47
48 enum LogLevel { 48 enum LogLevel {
49 LOG_TIP, 49 LOG_TIP,
50 LOG_INFO, 50 LOG_INFO,
51 LOG_WARNING, 51 LOG_WARNING,
52 LOG_ERROR, 52 LOG_ERROR,
53 }; 53 };
54 54
55 struct AppCacheInfo { 55 struct AppCacheInfo {
56 AppCacheInfo();
57 ~AppCacheInfo();
58
56 GURL manifest_url; 59 GURL manifest_url;
57 base::Time creation_time; 60 base::Time creation_time;
58 base::Time last_update_time; 61 base::Time last_update_time;
59 base::Time last_access_time; 62 base::Time last_access_time;
60 int64 cache_id; 63 int64 cache_id;
61 Status status; 64 Status status;
62 int64 size; 65 int64 size;
63 bool is_complete; 66 bool is_complete;
64 AppCacheInfo() : cache_id(kNoCacheId), status(UNCACHED),
65 size(0), is_complete(false) { }
66 }; 67 };
67 68
68 typedef std::vector<AppCacheInfo> AppCacheInfoVector; 69 typedef std::vector<AppCacheInfo> AppCacheInfoVector;
69 70
70 // POD type to hold information about a single appcache resource. 71 // Type to hold information about a single appcache resource.
71 struct AppCacheResourceInfo { 72 struct AppCacheResourceInfo {
73 AppCacheResourceInfo();
74 ~AppCacheResourceInfo();
75
72 GURL url; 76 GURL url;
73 int64 size; 77 int64 size;
74 bool is_master; 78 bool is_master;
75 bool is_manifest; 79 bool is_manifest;
76 bool is_fallback; 80 bool is_fallback;
77 bool is_foreign; 81 bool is_foreign;
78 bool is_explicit; 82 bool is_explicit;
79 }; 83 };
80 84
81 // Interface used by backend (browser-process) to talk to frontend (renderer). 85 // Interface used by backend (browser-process) to talk to frontend (renderer).
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 141
138 bool IsSchemeSupported(const GURL& url); 142 bool IsSchemeSupported(const GURL& url);
139 bool IsMethodSupported(const std::string& method); 143 bool IsMethodSupported(const std::string& method);
140 bool IsSchemeAndMethodSupported(const URLRequest* request); 144 bool IsSchemeAndMethodSupported(const URLRequest* request);
141 145
142 extern const FilePath::CharType kAppCacheDatabaseName[]; 146 extern const FilePath::CharType kAppCacheDatabaseName[];
143 147
144 } // namespace 148 } // namespace
145 149
146 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ 150 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698