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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/fetch/Request.h" 5 #include "modules/fetch/Request.h"
6 6
7 #include "bindings/core/v8/Dictionary.h" 7 #include "bindings/core/v8/Dictionary.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/fetch/FetchUtils.h" 10 #include "core/fetch/FetchUtils.h"
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 webRequest.setRequestContext(m_request->context()); 621 webRequest.setRequestContext(m_request->context());
622 // This strips off the fragment part. 622 // This strips off the fragment part.
623 webRequest.setURL(url()); 623 webRequest.setURL(url());
624 624
625 const FetchHeaderList* headerList = m_headers->headerList(); 625 const FetchHeaderList* headerList = m_headers->headerList();
626 for (size_t i = 0, size = headerList->size(); i < size; ++i) { 626 for (size_t i = 0, size = headerList->size(); i < size; ++i) {
627 const FetchHeaderList::Header& header = headerList->entry(i); 627 const FetchHeaderList::Header& header = headerList->entry(i);
628 webRequest.appendHeader(header.first, header.second); 628 webRequest.appendHeader(header.first, header.second);
629 } 629 }
630 630
631 webRequest.setReferrer(m_request->referrerString(), static_cast<WebReferrerP olicy>(m_request->referrerPolicy())); 631 webRequest.setReferrer(m_request->referrerString(), static_cast<WebReferrerP olicy>(m_request->getReferrerPolicy()));
632 // FIXME: How can we set isReload properly? What is the correct place to loa d it in to the Request object? We should investigate the right way 632 // FIXME: How can we set isReload properly? What is the correct place to loa d it in to the Request object? We should investigate the right way
633 // to plumb this information in to here. 633 // to plumb this information in to here.
634 } 634 }
635 635
636 String Request::mimeType() const 636 String Request::mimeType() const
637 { 637 {
638 return m_request->mimeType(); 638 return m_request->mimeType();
639 } 639 }
640 640
641 DEFINE_TRACE(Request) 641 DEFINE_TRACE(Request)
642 { 642 {
643 Body::trace(visitor); 643 Body::trace(visitor);
644 visitor->trace(m_request); 644 visitor->trace(m_request);
645 visitor->trace(m_headers); 645 visitor->trace(m_headers);
646 } 646 }
647 647
648 } // namespace blink 648 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698