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

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

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Rebase. :( Created 3 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 } 393 }
394 394
395 void WebURLRequest::setUiStartTime(double timeSeconds) { 395 void WebURLRequest::setUiStartTime(double timeSeconds) {
396 m_resourceRequest->setUIStartTime(timeSeconds); 396 m_resourceRequest->setUIStartTime(timeSeconds);
397 } 397 }
398 398
399 bool WebURLRequest::isExternalRequest() const { 399 bool WebURLRequest::isExternalRequest() const {
400 return m_resourceRequest->isExternalRequest(); 400 return m_resourceRequest->isExternalRequest();
401 } 401 }
402 402
403 WebInsecureRequestPolicy WebURLRequest::getInsecureRequestPolicy() const {
404 return m_resourceRequest->getInsecureRequestPolicy();
405 }
406
403 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const { 407 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const {
404 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) 408 if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
405 return WebURLRequest::LoadingIPCType::Mojo; 409 return WebURLRequest::LoadingIPCType::Mojo;
406 return WebURLRequest::LoadingIPCType::ChromeIPC; 410 return WebURLRequest::LoadingIPCType::ChromeIPC;
407 } 411 }
408 412
409 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { 413 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) {
410 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); 414 m_resourceRequest->setNavigationStartTime(navigationStartSeconds);
411 } 415 }
412 416
(...skipping 14 matching lines...) Expand all
427 } 431 }
428 432
429 const ResourceRequest& WebURLRequest::toResourceRequest() const { 433 const ResourceRequest& WebURLRequest::toResourceRequest() const {
430 DCHECK(m_resourceRequest); 434 DCHECK(m_resourceRequest);
431 return *m_resourceRequest; 435 return *m_resourceRequest;
432 } 436 }
433 437
434 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 438 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {}
435 439
436 } // namespace blink 440 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/platform/loader/fetch/FetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698