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

Side by Side Diff: net/log/net_log_capture_mode.cc

Issue 1360253002: Log GOAWAY frame debug data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize |goaway_count_|. Created 5 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "net/log/net_log_capture_mode.h" 5 #include "net/log/net_log_capture_mode.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 namespace net { 9 namespace net {
10 10
11 namespace { 11 namespace {
12 12
13 // Integer representation for the capture mode. The numeric value is depended on 13 // Integer representation for the capture mode. The numeric value is depended on
14 // for methods of NetLogCaptureMode, which expect that higher values represent a 14 // for methods of NetLogCaptureMode, which expect that higher values represent a
15 // strict superset of the capabilities of lower values. 15 // strict superset of the capabilities of lower values.
16 enum InternalValue { 16 enum InternalValue {
17 // Log all events, but do not include the actual transferred bytes and 17 // Log all events, but do not include the actual transferred bytes, and
18 // remove cookies and HTTP credentials. 18 // remove cookies and HTTP credentials and HTTP/2 GOAWAY frame debug data.
19 DEFAULT, 19 DEFAULT,
20 20
21 // Log all events, but do not include the actual transferred bytes as 21 // Log all events, but do not include the actual transferred bytes as
22 // parameters for bytes sent/received events. 22 // parameters for bytes sent/received events.
23 INCLUDE_COOKIES_AND_CREDENTIALS, 23 INCLUDE_COOKIES_AND_CREDENTIALS,
24 24
25 // Log everything possible, even if it is slow and memory expensive. 25 // Log everything possible, even if it is slow and memory expensive.
26 // Includes logging of transferred bytes. 26 // Includes logging of transferred bytes.
27 INCLUDE_SOCKET_BYTES, 27 INCLUDE_SOCKET_BYTES,
28 }; 28 };
(...skipping 28 matching lines...) Expand all
57 } 57 }
58 58
59 bool NetLogCaptureMode::operator!=(NetLogCaptureMode mode) const { 59 bool NetLogCaptureMode::operator!=(NetLogCaptureMode mode) const {
60 return !(*this == mode); 60 return !(*this == mode);
61 } 61 }
62 62
63 NetLogCaptureMode::NetLogCaptureMode(uint32_t value) : value_(value) { 63 NetLogCaptureMode::NetLogCaptureMode(uint32_t value) : value_(value) {
64 } 64 }
65 65
66 } // namespace net 66 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698