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

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

Issue 1143083002: Implement request's redirect mode and RequestRedirect for Fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const 342 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const
343 { 343 {
344 return m_private->m_resourceRequest->fetchCredentialsMode(); 344 return m_private->m_resourceRequest->fetchCredentialsMode();
345 } 345 }
346 346
347 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode mode) 347 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode mode)
348 { 348 {
349 return m_private->m_resourceRequest->setFetchCredentialsMode(mode); 349 return m_private->m_resourceRequest->setFetchCredentialsMode(mode);
350 } 350 }
351 351
352 WebURLRequest::FetchRedirectMode WebURLRequest::fetchRedirectMode() const
353 {
354 return m_private->m_resourceRequest->fetchRedirectMode();
355 }
356
357 void WebURLRequest::setFetchRedirectMode(WebURLRequest::FetchRedirectMode mode)
358 {
359 return m_private->m_resourceRequest->setFetchRedirectMode(mode);
360 }
361
352 WebURLRequest::ExtraData* WebURLRequest::extraData() const 362 WebURLRequest::ExtraData* WebURLRequest::extraData() const
353 { 363 {
354 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr aData(); 364 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr aData();
355 if (!data) 365 if (!data)
356 return 0; 366 return 0;
357 return static_cast<ExtraDataContainer*>(data.get())->extraData(); 367 return static_cast<ExtraDataContainer*>(data.get())->extraData();
358 } 368 }
359 369
360 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) 370 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData)
361 { 371 {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // Subclasses may call this directly so a self-assignment check is needed 448 // Subclasses may call this directly so a self-assignment check is needed
439 // here as well as in the public assign method. 449 // here as well as in the public assign method.
440 if (m_private == p) 450 if (m_private == p)
441 return; 451 return;
442 if (m_private) 452 if (m_private)
443 m_private->dispose(); 453 m_private->dispose();
444 m_private = p; 454 m_private = p;
445 } 455 }
446 456
447 } // namespace blink 457 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698