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

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

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ReportIntent, // Report metrics with UI action displayed intent. 134 ReportIntent, // Report metrics with UI action displayed intent.
135 }; 135 };
136 136
137 // The LoFi state which determines whether to request a Lo-Fi version of the resource. 137 // The LoFi state which determines whether to request a Lo-Fi version of the resource.
138 enum LoFiState { 138 enum LoFiState {
139 LoFiUnspecified, // Let the browser process decide whether or not to req uest the Lo-Fi version. 139 LoFiUnspecified, // Let the browser process decide whether or not to req uest the Lo-Fi version.
140 LoFiOff, // Request a normal (non-Lo-Fi) version of the resource. 140 LoFiOff, // Request a normal (non-Lo-Fi) version of the resource.
141 LoFiOn, // Request a Lo-Fi version of the resource. 141 LoFiOn, // Request a Lo-Fi version of the resource.
142 }; 142 };
143 143
144 enum class LoadingIPC {
145 ChromeIPC,
146 Mojo,
147 };
148
144 class ExtraData { 149 class ExtraData {
145 public: 150 public:
146 virtual ~ExtraData() { } 151 virtual ~ExtraData() { }
147 }; 152 };
148 153
149 ~WebURLRequest() { reset(); } 154 ~WebURLRequest() { reset(); }
150 155
151 WebURLRequest() : m_private(0) { } 156 WebURLRequest() : m_private(0) { }
152 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); } 157 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); }
153 WebURLRequest& operator=(const WebURLRequest& r) 158 WebURLRequest& operator=(const WebURLRequest& r)
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // that triggered the navigation (which can be different from the navigation 306 // that triggered the navigation (which can be different from the navigation
302 // start time used in the Navigation Timing API). 307 // start time used in the Navigation Timing API).
303 BLINK_PLATFORM_EXPORT double uiStartTime() const; 308 BLINK_PLATFORM_EXPORT double uiStartTime() const;
304 BLINK_PLATFORM_EXPORT void setUiStartTime(double); 309 BLINK_PLATFORM_EXPORT void setUiStartTime(double);
305 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const; 310 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const;
306 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy); 311 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy);
307 312
308 // https://mikewest.github.io/cors-rfc1918/#external-request 313 // https://mikewest.github.io/cors-rfc1918/#external-request
309 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; 314 BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
310 315
316 BLINK_PLATFORM_EXPORT LoadingIPC loadingIPC() const;
kinuko 2016/05/20 09:38:51 nit: The method name feels a bit vague about what
yhirano 2016/05/20 11:32:54 Done.
317
311 #if INSIDE_BLINK 318 #if INSIDE_BLINK
312 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); 319 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
313 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; 320 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;
314 #endif 321 #endif
315 322
316 protected: 323 protected:
317 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 324 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
318 325
319 private: 326 private:
320 WebURLRequestPrivate* m_private; 327 WebURLRequestPrivate* m_private;
321 }; 328 };
322 329
323 } // namespace blink 330 } // namespace blink
324 331
325 #endif 332 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698