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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 const CString& getSecurityInfo() const { return m_securityInfo; } 169 const CString& getSecurityInfo() const { return m_securityInfo; }
170 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; } 170 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; }
171 171
172 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; } 172 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; }
173 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; } 173 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; }
174 174
175 SecurityStyle getSecurityStyle() const { return m_securityStyle; } 175 SecurityStyle getSecurityStyle() const { return m_securityStyle; }
176 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } 176 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; }
177 177
178 const SecurityDetails* securityDetails() const { return &m_securityDetails; } 178 const SecurityDetails* getSecurityDetails() const { return &m_securityDetail s; }
179 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId, size_t numUnknownScts, size_ t numInvalidScts, size_t numValidScts); 179 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId, size_t numUnknownScts, size_ t numInvalidScts, size_t numValidScts);
180 180
181 long long appCacheID() const { return m_appCacheID; } 181 long long appCacheID() const { return m_appCacheID; }
182 void setAppCacheID(long long id) { m_appCacheID = id; } 182 void setAppCacheID(long long id) { m_appCacheID = id; }
183 183
184 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } 184 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; }
185 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; } 185 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; }
186 186
187 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; } 187 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; }
188 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; } 188 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } 223 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; }
224 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; } 224 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; }
225 225
226 unsigned short remotePort() const { return m_remotePort; } 226 unsigned short remotePort() const { return m_remotePort; }
227 void setRemotePort(unsigned short value) { m_remotePort = value; } 227 void setRemotePort(unsigned short value) { m_remotePort = value; }
228 228
229 const String& downloadedFilePath() const { return m_downloadedFilePath; } 229 const String& downloadedFilePath() const { return m_downloadedFilePath; }
230 void setDownloadedFilePath(const String&); 230 void setDownloadedFilePath(const String&);
231 231
232 // Extra data associated with this response. 232 // Extra data associated with this response.
233 ExtraData* extraData() const { return m_extraData.get(); } 233 ExtraData* getExtraData() const { return m_extraData.get(); }
234 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 234 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
235 235
236 // The ResourceResponse subclass may "shadow" this method to provide platfor m-specific memory usage information 236 // The ResourceResponse subclass may "shadow" this method to provide platfor m-specific memory usage information
237 unsigned memoryUsage() const 237 unsigned memoryUsage() const
238 { 238 {
239 // average size, mostly due to URL and Header Map strings 239 // average size, mostly due to URL and Header Map strings
240 return 1280; 240 return 1280;
241 } 241 }
242 242
243 // This method doesn't compare the all members. 243 // This method doesn't compare the all members.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 int64_t m_responseTime; 391 int64_t m_responseTime;
392 String m_remoteIPAddress; 392 String m_remoteIPAddress;
393 unsigned short m_remotePort; 393 unsigned short m_remotePort;
394 String m_downloadedFilePath; 394 String m_downloadedFilePath;
395 RefPtr<BlobDataHandle> m_downloadedFileHandle; 395 RefPtr<BlobDataHandle> m_downloadedFileHandle;
396 }; 396 };
397 397
398 } // namespace blink 398 } // namespace blink
399 399
400 #endif // ResourceResponse_h 400 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698