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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 return m_private->m_resourceRequest->requestContext(); 237 return m_private->m_resourceRequest->requestContext();
238 } 238 }
239 239
240 WebURLRequest::FrameType WebURLRequest::frameType() const 240 WebURLRequest::FrameType WebURLRequest::frameType() const
241 { 241 {
242 return m_private->m_resourceRequest->frameType(); 242 return m_private->m_resourceRequest->frameType();
243 } 243 }
244 244
245 WebReferrerPolicy WebURLRequest::referrerPolicy() const 245 WebReferrerPolicy WebURLRequest::referrerPolicy() const
246 { 246 {
247 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer Policy()); 247 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->getRefer rerPolicy());
248 } 248 }
249 249
250 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) 250 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin)
251 { 251 {
252 m_private->m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::creat eFromString(origin)); 252 m_private->m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::creat eFromString(origin));
253 } 253 }
254 254
255 bool WebURLRequest::hasUserGesture() const 255 bool WebURLRequest::hasUserGesture() const
256 { 256 {
257 return m_private->m_resourceRequest->hasUserGesture(); 257 return m_private->m_resourceRequest->hasUserGesture();
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // Subclasses may call this directly so a self-assignment check is needed 471 // Subclasses may call this directly so a self-assignment check is needed
472 // here as well as in the public assign method. 472 // here as well as in the public assign method.
473 if (m_private == p) 473 if (m_private == p)
474 return; 474 return;
475 if (m_private) 475 if (m_private)
476 m_private->dispose(); 476 m_private->dispose();
477 m_private = p; 477 m_private = p;
478 } 478 }
479 479
480 } // namespace blink 480 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698