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

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.h

Issue 2777823002: Bypass DRP if a redirect cycle is detected (Closed)
Patch Set: ryansturm comments Created 3 years, 8 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 // 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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698