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

Side by Side Diff: public/platform/WebURLRequest.h

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/platform/network/ResourceRequest.cpp ('k') | no next file » | 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 BLINK_PLATFORM_EXPORT void setCheckForBrowserSideNavigation(bool); 272 BLINK_PLATFORM_EXPORT void setCheckForBrowserSideNavigation(bool);
273 273
274 // This is used to report navigation metrics starting from the UI action 274 // This is used to report navigation metrics starting from the UI action
275 // that triggered the navigation (which can be different from the navigation 275 // that triggered the navigation (which can be different from the navigation
276 // start time used in the Navigation Timing API). 276 // start time used in the Navigation Timing API).
277 BLINK_PLATFORM_EXPORT double uiStartTime() const; 277 BLINK_PLATFORM_EXPORT double uiStartTime() const;
278 BLINK_PLATFORM_EXPORT void setUiStartTime(double); 278 BLINK_PLATFORM_EXPORT void setUiStartTime(double);
279 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const; 279 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const;
280 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy); 280 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy);
281 281
282 // Does the request originate from a SecurityContext hosted in a reserved
283 // (RFC1918) IP range?
284 BLINK_PLATFORM_EXPORT bool originatesFromReservedIPRange() const;
285 BLINK_PLATFORM_EXPORT void setOriginatesFromReservedIPRange(bool);
286
282 #if INSIDE_BLINK 287 #if INSIDE_BLINK
283 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); 288 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
284 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; 289 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;
285 #endif 290 #endif
286 291
287 protected: 292 protected:
288 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 293 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
289 294
290 private: 295 private:
291 WebURLRequestPrivate* m_private; 296 WebURLRequestPrivate* m_private;
292 }; 297 };
293 298
294 } // namespace blink 299 } // namespace blink
295 300
296 #endif 301 #endif
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698