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

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

Issue 848853002: Tag ResourceRequest as originating from reserved IP ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@documentinit
Patch Set: Created 5 years, 11 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
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 double WebURLRequest::uiStartTime() const 395 double WebURLRequest::uiStartTime() const
396 { 396 {
397 return m_private->m_resourceRequest->uiStartTime(); 397 return m_private->m_resourceRequest->uiStartTime();
398 } 398 }
399 399
400 void WebURLRequest::setUiStartTime(double time) 400 void WebURLRequest::setUiStartTime(double time)
401 { 401 {
402 m_private->m_resourceRequest->setUIStartTime(time); 402 m_private->m_resourceRequest->setUIStartTime(time);
403 } 403 }
404 404
405 bool WebURLRequest::originatesFromReservedIPRange() const
406 {
407 return m_private->m_resourceRequest->originatesFromReservedIPRange();
408 }
409
410 void WebURLRequest::setOriginatesFromReservedIPRange(bool value)
411 {
412 m_private->m_resourceRequest->setOriginatesFromReservedIPRange(value);
413 }
414
405 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const 415 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const
406 { 416 {
407 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 417 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
408 m_private->m_resourceRequest->inputPerfMetricReportPolicy()); 418 m_private->m_resourceRequest->inputPerfMetricReportPolicy());
409 } 419 }
410 420
411 void WebURLRequest::setInputPerfMetricReportPolicy( 421 void WebURLRequest::setInputPerfMetricReportPolicy(
412 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) 422 WebURLRequest::InputToLoadPerfMetricReportPolicy policy)
413 { 423 {
414 m_private->m_resourceRequest->setInputPerfMetricReportPolicy( 424 m_private->m_resourceRequest->setInputPerfMetricReportPolicy(
(...skipping 13 matching lines...) Expand all
428 // Subclasses may call this directly so a self-assignment check is needed 438 // Subclasses may call this directly so a self-assignment check is needed
429 // here as well as in the public assign method. 439 // here as well as in the public assign method.
430 if (m_private == p) 440 if (m_private == p)
431 return; 441 return;
432 if (m_private) 442 if (m_private)
433 m_private->dispose(); 443 m_private->dispose();
434 m_private = p; 444 m_private = p;
435 } 445 }
436 446
437 } // namespace blink 447 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698