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

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: Re: #12. 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
« no previous file with comments | « net/log/net_log_capture_mode.h ('k') | net/spdy/buffered_spdy_framer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TODO(bnc): Consider renaming to INCLUDE_PRIVACY_INFO.
23 INCLUDE_COOKIES_AND_CREDENTIALS, 24 INCLUDE_COOKIES_AND_CREDENTIALS,
24 25
25 // Log everything possible, even if it is slow and memory expensive. 26 // Log everything possible, even if it is slow and memory expensive.
26 // Includes logging of transferred bytes. 27 // Includes logging of transferred bytes.
27 INCLUDE_SOCKET_BYTES, 28 INCLUDE_SOCKET_BYTES,
28 }; 29 };
29 30
30 } // namespace 31 } // namespace
31 32
32 NetLogCaptureMode::NetLogCaptureMode() : NetLogCaptureMode(DEFAULT) { 33 NetLogCaptureMode::NetLogCaptureMode() : NetLogCaptureMode(DEFAULT) {
(...skipping 24 matching lines...) Expand all
57 } 58 }
58 59
59 bool NetLogCaptureMode::operator!=(NetLogCaptureMode mode) const { 60 bool NetLogCaptureMode::operator!=(NetLogCaptureMode mode) const {
60 return !(*this == mode); 61 return !(*this == mode);
61 } 62 }
62 63
63 NetLogCaptureMode::NetLogCaptureMode(uint32_t value) : value_(value) { 64 NetLogCaptureMode::NetLogCaptureMode(uint32_t value) : value_(value) {
64 } 65 }
65 66
66 } // namespace net 67 } // namespace net
OLDNEW
« no previous file with comments | « net/log/net_log_capture_mode.h ('k') | net/spdy/buffered_spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698