OLD | NEW |
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Used to report performance metrics timed from the UI action that | 130 // Used to report performance metrics timed from the UI action that |
131 // triggered them (as opposed to navigation start time used in the | 131 // triggered them (as opposed to navigation start time used in the |
132 // Navigation Timing API). | 132 // Navigation Timing API). |
133 enum InputToLoadPerfMetricReportPolicy { | 133 enum InputToLoadPerfMetricReportPolicy { |
134 NoReport, // Don't report metrics for this WebURLRequest. | 134 NoReport, // Don't report metrics for this WebURLRequest. |
135 ReportLink, // Report metrics with UI action link clicked. | 135 ReportLink, // Report metrics with UI action link clicked. |
136 ReportIntent, // Report metrics with UI action displayed intent. | 136 ReportIntent, // Report metrics with UI action displayed intent. |
137 }; | 137 }; |
138 | 138 |
139 // The Previews state which determines whether to request a Preview version of | 139 typedef int PreviewsState; |
| 140 |
| 141 // The Previews types which determines whether to request a Preview version of |
140 // the resource. | 142 // the resource. |
141 enum PreviewsState { | 143 enum PreviewsTypes { |
142 PreviewsUnspecified = 0, // Let the browser process decide whether or | 144 PreviewsUnspecified = 0, // Let the browser process decide whether or |
143 // not to request Preview types. | 145 // not to request Preview types. |
144 ServerLoFiOn = 1 << 0, // Request a Lo-Fi version of the resource | 146 ServerLoFiOn = 1 << 0, // Request a Lo-Fi version of the resource |
145 // from the server. | 147 // from the server. |
146 ClientLoFiOn = 1 << 1, // Request a Lo-Fi version of the resource | 148 ClientLoFiOn = 1 << 1, // Request a Lo-Fi version of the resource |
147 // from the client. | 149 // from the client. |
148 PreviewsNoTransform = 1 << 2, // Explicitly forbid Previews | 150 ServerLitePageOn = 1 << 2, // Request a Lite Page version of the |
| 151 // resource from the server. |
| 152 PreviewsNoTransform = 1 << 3, // Explicitly forbid Previews |
149 // transformations. | 153 // transformations. |
150 PreviewsOff = 1 << 3, // Request a normal (non-Preview) version of | 154 PreviewsOff = 1 << 4, // Request a normal (non-Preview) version of |
151 // the resource. Server transformations may | 155 // the resource. Server transformations may |
152 // still happen if the page is heavy. | 156 // still happen if the page is heavy. |
153 PreviewsStateLast = PreviewsOff | 157 PreviewsStateLast = PreviewsOff |
154 }; | 158 }; |
155 | 159 |
156 // Indicates which types of ServiceWorkers should skip handling this request. | 160 // Indicates which types of ServiceWorkers should skip handling this request. |
157 enum class SkipServiceWorker { | 161 enum class SkipServiceWorker { |
158 // Request can be handled both by a controlling same-origin worker and | 162 // Request can be handled both by a controlling same-origin worker and |
159 // a cross-origin foreign fetch service worker. | 163 // a cross-origin foreign fetch service worker. |
160 None, | 164 None, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 // instance it contains. | 357 // instance it contains. |
354 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 358 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
355 | 359 |
356 // Should never be null. | 360 // Should never be null. |
357 ResourceRequest* m_resourceRequest; | 361 ResourceRequest* m_resourceRequest; |
358 }; | 362 }; |
359 | 363 |
360 } // namespace blink | 364 } // namespace blink |
361 | 365 |
362 #endif | 366 #endif |
OLD | NEW |