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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

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) 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 WebString WebURLResponse::cacheStorageCacheName() const 448 WebString WebURLResponse::cacheStorageCacheName() const
449 { 449 {
450 return m_private->m_resourceResponse->cacheStorageCacheName(); 450 return m_private->m_resourceResponse->cacheStorageCacheName();
451 } 451 }
452 452
453 void WebURLResponse::setCacheStorageCacheName(const WebString& cacheStorageCache Name) 453 void WebURLResponse::setCacheStorageCacheName(const WebString& cacheStorageCache Name)
454 { 454 {
455 m_private->m_resourceResponse->setCacheStorageCacheName(cacheStorageCacheNam e); 455 m_private->m_resourceResponse->setCacheStorageCacheName(cacheStorageCacheNam e);
456 } 456 }
457 457
458 void WebURLResponse::setCorsExposedHeaderNames(const WebVector<WebString>& heade rNames)
459 {
460 Vector<String> exposedHeaderNames;
461 exposedHeaderNames.append(headerNames.data(), headerNames.size());
462 m_private->m_resourceResponse->setCorsExposedHeaderNames(exposedHeaderNames) ;
463 }
464
458 WebString WebURLResponse::downloadFilePath() const 465 WebString WebURLResponse::downloadFilePath() const
459 { 466 {
460 return m_private->m_resourceResponse->downloadedFilePath(); 467 return m_private->m_resourceResponse->downloadedFilePath();
461 } 468 }
462 469
463 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath) 470 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath)
464 { 471 {
465 m_private->m_resourceResponse->setDownloadedFilePath(downloadFilePath); 472 m_private->m_resourceResponse->setDownloadedFilePath(downloadFilePath);
466 } 473 }
467 474
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Subclasses may call this directly so a self-assignment check is needed 510 // Subclasses may call this directly so a self-assignment check is needed
504 // here as well as in the public assign method. 511 // here as well as in the public assign method.
505 if (m_private == p) 512 if (m_private == p)
506 return; 513 return;
507 if (m_private) 514 if (m_private)
508 m_private->dispose(); 515 m_private->dispose();
509 m_private = p; 516 m_private = p;
510 } 517 }
511 518
512 } // namespace blink 519 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698