| 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 service workers will receive fetch events for this request. | 160 // Indicates which service workers will receive fetch events for this request. |
| 157 enum class ServiceWorkerMode { | 161 enum class ServiceWorkerMode { |
| 158 // Relevant local and foreign service workers will get a fetch or | 162 // Relevant local and foreign service workers will get a fetch or |
| 159 // foreignfetch event for this request. | 163 // foreignfetch event for this request. |
| 160 All, | 164 All, |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // instance it contains. | 365 // instance it contains. |
| 362 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 366 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
| 363 | 367 |
| 364 // Should never be null. | 368 // Should never be null. |
| 365 ResourceRequest* m_resourceRequest; | 369 ResourceRequest* m_resourceRequest; |
| 366 }; | 370 }; |
| 367 | 371 |
| 368 } // namespace blink | 372 } // namespace blink |
| 369 | 373 |
| 370 #endif | 374 #endif |
| OLD | NEW |