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

Side by Side Diff: chrome/browser/media/webrtc_logging_handler_host.cc

Issue 165333004: Revert "Allow MessageFilters to restrict listening to specific message classes" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media/webrtc_logging_handler_host.h" 5 #include "chrome/browser/media/webrtc_logging_handler_host.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 it != meta_data.end(); ++it) { 102 it != meta_data.end(); ++it) {
103 *message += it->first + ": " + it->second + '\n'; 103 *message += it->first + ": " + it->second + '\n';
104 } 104 }
105 // Remove last '\n'. 105 // Remove last '\n'.
106 message->resize(message->size() - 1); 106 message->resize(message->size() - 1);
107 } 107 }
108 108
109 } // namespace 109 } // namespace
110 110
111 WebRtcLoggingHandlerHost::WebRtcLoggingHandlerHost(Profile* profile) 111 WebRtcLoggingHandlerHost::WebRtcLoggingHandlerHost(Profile* profile)
112 : BrowserMessageFilter(WebRtcLoggingMsgStart), 112 : profile_(profile),
113 profile_(profile),
114 logging_state_(CLOSED), 113 logging_state_(CLOSED),
115 upload_log_on_render_close_(false) { 114 upload_log_on_render_close_(false) {
116 DCHECK(profile_); 115 DCHECK(profile_);
117 } 116 }
118 117
119 WebRtcLoggingHandlerHost::~WebRtcLoggingHandlerHost() {} 118 WebRtcLoggingHandlerHost::~WebRtcLoggingHandlerHost() {}
120 119
121 void WebRtcLoggingHandlerHost::SetMetaData( 120 void WebRtcLoggingHandlerHost::SetMetaData(
122 const MetaDataMap& meta_data, 121 const MetaDataMap& meta_data,
123 const GenericDoneCallback& callback) { 122 const GenericDoneCallback& callback) {
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 void WebRtcLoggingHandlerHost::FireGenericDoneCallback( 418 void WebRtcLoggingHandlerHost::FireGenericDoneCallback(
420 GenericDoneCallback* callback, bool success, 419 GenericDoneCallback* callback, bool success,
421 const std::string& error_message) { 420 const std::string& error_message) {
422 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 421 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
423 DCHECK(!(*callback).is_null()); 422 DCHECK(!(*callback).is_null());
424 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, 423 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
425 base::Bind(*callback, success, 424 base::Bind(*callback, success,
426 error_message)); 425 error_message));
427 (*callback).Reset(); 426 (*callback).Reset();
428 } 427 }
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_message_filter_android.cc ('k') | chrome/browser/plugins/plugin_info_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698