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

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

Issue 1965013002: Implement headers attributes in ForeignFetchResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using instead of typedef Created 4 years, 7 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 const Vector<char>& multipartBoundary() const { return m_multipartBoundary; } 218 const Vector<char>& multipartBoundary() const { return m_multipartBoundary; }
219 void setMultipartBoundary(const char* bytes, size_t size) 219 void setMultipartBoundary(const char* bytes, size_t size)
220 { 220 {
221 m_multipartBoundary.clear(); 221 m_multipartBoundary.clear();
222 m_multipartBoundary.append(bytes, size); 222 m_multipartBoundary.append(bytes, size);
223 } 223 }
224 224
225 const String& cacheStorageCacheName() const { return m_cacheStorageCacheName ; } 225 const String& cacheStorageCacheName() const { return m_cacheStorageCacheName ; }
226 void setCacheStorageCacheName(const String& cacheStorageCacheName) { m_cache StorageCacheName = cacheStorageCacheName; } 226 void setCacheStorageCacheName(const String& cacheStorageCacheName) { m_cache StorageCacheName = cacheStorageCacheName; }
227 227
228 const Vector<String>& corsExposedHeaderNames() const { return m_corsExposedH eaderNames; }
229 void setCorsExposedHeaderNames(const Vector<String>& headerNames)
230 {
231 m_corsExposedHeaderNames = headerNames;
232 }
233
228 int64_t responseTime() const { return m_responseTime; } 234 int64_t responseTime() const { return m_responseTime; }
229 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } 235 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
230 236
231 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } 237 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; }
232 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; } 238 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; }
233 239
234 unsigned short remotePort() const { return m_remotePort; } 240 unsigned short remotePort() const { return m_remotePort; }
235 void setRemotePort(unsigned short value) { m_remotePort = value; } 241 void setRemotePort(unsigned short value) { m_remotePort = value; }
236 242
237 const String& downloadedFilePath() const { return m_downloadedFilePath; } 243 const String& downloadedFilePath() const { return m_downloadedFilePath; }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 WebServiceWorkerResponseType m_serviceWorkerResponseType; 345 WebServiceWorkerResponseType m_serviceWorkerResponseType;
340 346
341 // The original URL of the response which was fetched by the ServiceWorker. 347 // The original URL of the response which was fetched by the ServiceWorker.
342 // This may be empty if the response was created inside the ServiceWorker. 348 // This may be empty if the response was created inside the ServiceWorker.
343 KURL m_originalURLViaServiceWorker; 349 KURL m_originalURLViaServiceWorker;
344 350
345 // The cache name of the CacheStorage from where the response is served via 351 // The cache name of the CacheStorage from where the response is served via
346 // the ServiceWorker. Null if the response isn't from the CacheStorage. 352 // the ServiceWorker. Null if the response isn't from the CacheStorage.
347 String m_cacheStorageCacheName; 353 String m_cacheStorageCacheName;
348 354
355 // The headers that should be exposed according to CORS. Only guaranteed
356 // to be set if the response was fetched by a ServiceWorker.
357 Vector<String> m_corsExposedHeaderNames;
358
349 // The time at which the response headers were received. For cached 359 // The time at which the response headers were received. For cached
350 // responses, this time could be "far" in the past. 360 // responses, this time could be "far" in the past.
351 int64_t m_responseTime; 361 int64_t m_responseTime;
352 362
353 // Remote IP address of the socket which fetched this resource. 363 // Remote IP address of the socket which fetched this resource.
354 AtomicString m_remoteIPAddress; 364 AtomicString m_remoteIPAddress;
355 365
356 // Remote port number of the socket which fetched this resource. 366 // Remote port number of the socket which fetched this resource.
357 unsigned short m_remotePort; 367 unsigned short m_remotePort;
358 368
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 int64_t m_responseTime; 414 int64_t m_responseTime;
405 String m_remoteIPAddress; 415 String m_remoteIPAddress;
406 unsigned short m_remotePort; 416 unsigned short m_remotePort;
407 String m_downloadedFilePath; 417 String m_downloadedFilePath;
408 RefPtr<BlobDataHandle> m_downloadedFileHandle; 418 RefPtr<BlobDataHandle> m_downloadedFileHandle;
409 }; 419 };
410 420
411 } // namespace blink 421 } // namespace blink
412 422
413 #endif // ResourceResponse_h 423 #endif // ResourceResponse_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebURLResponse.cpp ('k') | third_party/WebKit/Source/web/AssociatedURLLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698