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

Side by Side Diff: Source/platform/exported/WebURLRequest.cpp

Issue 1265133002: [1/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const 353 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const
354 { 354 {
355 return m_private->m_resourceRequest->fetchCredentialsMode(); 355 return m_private->m_resourceRequest->fetchCredentialsMode();
356 } 356 }
357 357
358 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode mode) 358 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode mode)
359 { 359 {
360 return m_private->m_resourceRequest->setFetchCredentialsMode(mode); 360 return m_private->m_resourceRequest->setFetchCredentialsMode(mode);
361 } 361 }
362 362
363 WebURLRequest::FetchRedirectMode WebURLRequest::fetchRedirectMode() const
364 {
365 return m_private->m_resourceRequest->fetchRedirectMode();
366 }
367
368 void WebURLRequest::setFetchRedirectMode(WebURLRequest::FetchRedirectMode redire ct)
369 {
370 return m_private->m_resourceRequest->setFetchRedirectMode(redirect);
371 }
372
363 WebURLRequest::ExtraData* WebURLRequest::extraData() const 373 WebURLRequest::ExtraData* WebURLRequest::extraData() const
364 { 374 {
365 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr aData(); 375 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr aData();
366 if (!data) 376 if (!data)
367 return 0; 377 return 0;
368 return static_cast<ExtraDataContainer*>(data.get())->extraData(); 378 return static_cast<ExtraDataContainer*>(data.get())->extraData();
369 } 379 }
370 380
371 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) 381 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData)
372 { 382 {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // Subclasses may call this directly so a self-assignment check is needed 459 // Subclasses may call this directly so a self-assignment check is needed
450 // here as well as in the public assign method. 460 // here as well as in the public assign method.
451 if (m_private == p) 461 if (m_private == p)
452 return; 462 return;
453 if (m_private) 463 if (m_private)
454 m_private->dispose(); 464 m_private->dispose();
455 m_private = p; 465 m_private = p;
456 } 466 }
457 467
458 } // namespace blink 468 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698