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

Side by Side Diff: webrtc/base/logsinks.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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 | « webrtc/base/flags.cc ('k') | webrtc/base/network.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 11 matching lines...) Expand all
22 size_t max_log_size, 22 size_t max_log_size,
23 size_t num_log_files) 23 size_t num_log_files)
24 : FileRotatingLogSink(new FileRotatingStream(log_dir_path, 24 : FileRotatingLogSink(new FileRotatingStream(log_dir_path,
25 log_prefix, 25 log_prefix,
26 max_log_size, 26 max_log_size,
27 num_log_files)) { 27 num_log_files)) {
28 } 28 }
29 29
30 FileRotatingLogSink::FileRotatingLogSink(FileRotatingStream* stream) 30 FileRotatingLogSink::FileRotatingLogSink(FileRotatingStream* stream)
31 : stream_(stream) { 31 : stream_(stream) {
32 DCHECK(stream); 32 RTC_DCHECK(stream);
33 } 33 }
34 34
35 FileRotatingLogSink::~FileRotatingLogSink() { 35 FileRotatingLogSink::~FileRotatingLogSink() {
36 } 36 }
37 37
38 void FileRotatingLogSink::OnLogMessage(const std::string& message) { 38 void FileRotatingLogSink::OnLogMessage(const std::string& message) {
39 if (stream_->GetState() != SS_OPEN) { 39 if (stream_->GetState() != SS_OPEN) {
40 std::cerr << "Init() must be called before adding this sink." << std::endl; 40 std::cerr << "Init() must be called before adding this sink." << std::endl;
41 return; 41 return;
42 } 42 }
(...skipping 12 matching lines...) Expand all
55 const std::string& log_dir_path, 55 const std::string& log_dir_path,
56 size_t max_total_log_size) 56 size_t max_total_log_size)
57 : FileRotatingLogSink( 57 : FileRotatingLogSink(
58 new CallSessionFileRotatingStream(log_dir_path, max_total_log_size)) { 58 new CallSessionFileRotatingStream(log_dir_path, max_total_log_size)) {
59 } 59 }
60 60
61 CallSessionFileRotatingLogSink::~CallSessionFileRotatingLogSink() { 61 CallSessionFileRotatingLogSink::~CallSessionFileRotatingLogSink() {
62 } 62 }
63 63
64 } // namespace rtc 64 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/flags.cc ('k') | webrtc/base/network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698