OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This is the list of data reduction proxy bypass event types and their values. | 5 // This is the list of data reduction proxy bypass event types and their values. |
6 // For the enum values, include the file | 6 // For the enum values, include the file |
7 // "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h". | 7 // "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h". |
8 // | 8 // |
9 // Here we define the values using a macro BYPASS_EVENT_TYPE, so it can be | 9 // Here we define the values using a macro BYPASS_EVENT_TYPE, so it can be |
10 // expanded differently in some places (for example, to automatically | 10 // expanded differently in some places (for example, to automatically |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Bypass because the request URI was too long. | 39 // Bypass because the request URI was too long. |
40 BYPASS_EVENT_TYPE(STATUS_502_HTTP_BAD_GATEWAY, 8) | 40 BYPASS_EVENT_TYPE(STATUS_502_HTTP_BAD_GATEWAY, 8) |
41 | 41 |
42 // Bypass due to a 503 response. | 42 // Bypass due to a 503 response. |
43 BYPASS_EVENT_TYPE(STATUS_503_HTTP_SERVICE_UNAVAILABLE, 9) | 43 BYPASS_EVENT_TYPE(STATUS_503_HTTP_SERVICE_UNAVAILABLE, 9) |
44 | 44 |
45 // Bypass due to any network error. | 45 // Bypass due to any network error. |
46 BYPASS_EVENT_TYPE(NETWORK_ERROR, 10) | 46 BYPASS_EVENT_TYPE(NETWORK_ERROR, 10) |
47 | 47 |
| 48 // Bypass due to URL redirect cycle. |
| 49 BYPASS_EVENT_TYPE(URL_REDIRECT_CYCLE, 11) |
| 50 |
48 // This must always be last. | 51 // This must always be last. |
49 BYPASS_EVENT_TYPE(MAX, 11) | 52 BYPASS_EVENT_TYPE(MAX, 12) |
OLD | NEW |