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

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

Issue 1084533002: Rename NetLogLogger and CapturingNetLog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename NetLogLogger and CapturingNetLog(removed compiler error for chromeOS) Created 5 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
« no previous file with comments | « net/log/capturing_net_log.h ('k') | net/log/net_log_logger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/log/capturing_net_log.h"
6
7 namespace net {
8
9 CapturingNetLog::CapturingNetLog() {
10 DeprecatedAddObserver(&capturing_net_log_observer_, LOG_ALL_BUT_BYTES);
11 }
12
13 CapturingNetLog::~CapturingNetLog() {
14 DeprecatedRemoveObserver(&capturing_net_log_observer_);
15 }
16
17 void CapturingNetLog::SetLogLevel(NetLog::LogLevel log_level) {
18 SetObserverLogLevel(&capturing_net_log_observer_, log_level);
19 }
20
21 void CapturingNetLog::GetEntries(
22 CapturingNetLog::CapturedEntryList* entry_list) const {
23 capturing_net_log_observer_.GetEntries(entry_list);
24 }
25
26 void CapturingNetLog::GetEntriesForSource(NetLog::Source source,
27 CapturedEntryList* entry_list) const {
28 capturing_net_log_observer_.GetEntriesForSource(source, entry_list);
29 }
30
31 size_t CapturingNetLog::GetSize() const {
32 return capturing_net_log_observer_.GetSize();
33 }
34
35 void CapturingNetLog::Clear() {
36 capturing_net_log_observer_.Clear();
37 }
38
39 CapturingBoundNetLog::CapturingBoundNetLog()
40 : net_log_(
41 BoundNetLog::Make(&capturing_net_log_, net::NetLog::SOURCE_NONE)) {
42 }
43
44 CapturingBoundNetLog::~CapturingBoundNetLog() {
45 }
46
47 void CapturingBoundNetLog::GetEntries(
48 CapturingNetLog::CapturedEntryList* entry_list) const {
49 capturing_net_log_.GetEntries(entry_list);
50 }
51
52 void CapturingBoundNetLog::GetEntriesForSource(
53 NetLog::Source source,
54 CapturingNetLog::CapturedEntryList* entry_list) const {
55 capturing_net_log_.GetEntriesForSource(source, entry_list);
56 }
57
58 size_t CapturingBoundNetLog::GetSize() const {
59 return capturing_net_log_.GetSize();
60 }
61
62 void CapturingBoundNetLog::Clear() {
63 capturing_net_log_.Clear();
64 }
65
66 void CapturingBoundNetLog::SetLogLevel(NetLog::LogLevel log_level) {
67 capturing_net_log_.SetLogLevel(log_level);
68 }
69
70 } // namespace net
OLDNEW
« no previous file with comments | « net/log/capturing_net_log.h ('k') | net/log/net_log_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698