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

Side by Side Diff: third_party/WebKit/public/platform/WebURLResponse.h

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: more curly braces Created 4 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
« no previous file with comments | « third_party/WebKit/public/platform/WebSecurityStyle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebURLResponse_h 31 #ifndef WebURLResponse_h
32 #define WebURLResponse_h 32 #define WebURLResponse_h
33 33
34 #include "public/platform/WebCString.h" 34 #include "public/platform/WebCString.h"
35 #include "public/platform/WebCommon.h" 35 #include "public/platform/WebCommon.h"
36 #include "public/platform/WebSecurityStyle.h"
36 #include "public/platform/WebString.h" 37 #include "public/platform/WebString.h"
37 #include "public/platform/WebVector.h" 38 #include "public/platform/WebVector.h"
38 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h" 39 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h"
39 #include <memory> 40 #include <memory>
40 41
41 namespace blink { 42 namespace blink {
42 43
43 class ResourceResponse; 44 class ResourceResponse;
44 class WebHTTPHeaderVisitor; 45 class WebHTTPHeaderVisitor;
45 class WebHTTPLoadInfo; 46 class WebHTTPLoadInfo;
46 class WebURL; 47 class WebURL;
47 class WebURLLoadTiming; 48 class WebURLLoadTiming;
48 49
49 class WebURLResponse { 50 class WebURLResponse {
50 public: 51 public:
51 enum HTTPVersion { 52 enum HTTPVersion {
52 HTTPVersionUnknown, 53 HTTPVersionUnknown,
53 HTTPVersion_0_9, 54 HTTPVersion_0_9,
54 HTTPVersion_1_0, 55 HTTPVersion_1_0,
55 HTTPVersion_1_1, 56 HTTPVersion_1_1,
56 HTTPVersion_2_0 57 HTTPVersion_2_0
57 }; 58 };
58 enum SecurityStyle {
59 SecurityStyleUnknown,
60 SecurityStyleUnauthenticated,
61 SecurityStyleAuthenticationBroken,
62 SecurityStyleWarning,
63 SecurityStyleAuthenticated
64 };
65 59
66 struct SignedCertificateTimestamp { 60 struct SignedCertificateTimestamp {
67 SignedCertificateTimestamp() {} 61 SignedCertificateTimestamp() {}
68 SignedCertificateTimestamp(WebString status, 62 SignedCertificateTimestamp(WebString status,
69 WebString origin, 63 WebString origin,
70 WebString logDescription, 64 WebString logDescription,
71 WebString logId, 65 WebString logId,
72 int64_t timestamp, 66 int64_t timestamp,
73 WebString hashAlgorithm, 67 WebString hashAlgorithm,
74 WebString signatureAlgorithm, 68 WebString signatureAlgorithm,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 BLINK_PLATFORM_EXPORT void setLastModifiedDate(double); 196 BLINK_PLATFORM_EXPORT void setLastModifiedDate(double);
203 197
204 BLINK_PLATFORM_EXPORT long long appCacheID() const; 198 BLINK_PLATFORM_EXPORT long long appCacheID() const;
205 BLINK_PLATFORM_EXPORT void setAppCacheID(long long); 199 BLINK_PLATFORM_EXPORT void setAppCacheID(long long);
206 200
207 BLINK_PLATFORM_EXPORT WebURL appCacheManifestURL() const; 201 BLINK_PLATFORM_EXPORT WebURL appCacheManifestURL() const;
208 BLINK_PLATFORM_EXPORT void setAppCacheManifestURL(const WebURL&); 202 BLINK_PLATFORM_EXPORT void setAppCacheManifestURL(const WebURL&);
209 203
210 BLINK_PLATFORM_EXPORT void setHasMajorCertificateErrors(bool); 204 BLINK_PLATFORM_EXPORT void setHasMajorCertificateErrors(bool);
211 205
212 BLINK_PLATFORM_EXPORT SecurityStyle getSecurityStyle() const; 206 BLINK_PLATFORM_EXPORT WebSecurityStyle getSecurityStyle() const;
213 BLINK_PLATFORM_EXPORT void setSecurityStyle(SecurityStyle); 207 BLINK_PLATFORM_EXPORT void setSecurityStyle(WebSecurityStyle);
214 208
215 BLINK_PLATFORM_EXPORT void setSecurityDetails(const WebSecurityDetails&); 209 BLINK_PLATFORM_EXPORT void setSecurityDetails(const WebSecurityDetails&);
216 210
217 #if INSIDE_BLINK 211 #if INSIDE_BLINK
218 BLINK_PLATFORM_EXPORT ResourceResponse& toMutableResourceResponse(); 212 BLINK_PLATFORM_EXPORT ResourceResponse& toMutableResourceResponse();
219 BLINK_PLATFORM_EXPORT const ResourceResponse& toResourceResponse() const; 213 BLINK_PLATFORM_EXPORT const ResourceResponse& toResourceResponse() const;
220 #endif 214 #endif
221 215
222 // Flag whether this request was served from the disk cache entry. 216 // Flag whether this request was served from the disk cache entry.
223 BLINK_PLATFORM_EXPORT bool wasCached() const; 217 BLINK_PLATFORM_EXPORT bool wasCached() const;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // instance it contains. 323 // instance it contains.
330 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; 324 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse;
331 325
332 // Should never be null. 326 // Should never be null.
333 ResourceResponse* m_resourceResponse; 327 ResourceResponse* m_resourceResponse;
334 }; 328 };
335 329
336 } // namespace blink 330 } // namespace blink
337 331
338 #endif 332 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebSecurityStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698