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

Side by Side Diff: chrome/browser/media/webrtc/webrtc_event_log_handler.cc

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_event_log_handler.h" 5 #include "chrome/browser/media/webrtc/webrtc_event_log_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/media/webrtc_log_list.h" 15 #include "chrome/browser/media/webrtc/webrtc_log_list.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 // Keys used to attach handler to the RenderProcessHost 23 // Keys used to attach handler to the RenderProcessHost
24 const char WebRtcEventLogHandler::kWebRtcEventLogHandlerKey[] = 24 const char WebRtcEventLogHandler::kWebRtcEventLogHandlerKey[] =
25 "kWebRtcEventLogHandlerKey"; 25 "kWebRtcEventLogHandlerKey";
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 if (!host->StopWebRTCEventLog()) { 141 if (!host->StopWebRTCEventLog()) {
142 error_callback.Run("No RTC event logging in progress"); 142 error_callback.Run("No RTC event logging in progress");
143 return; 143 return;
144 } 144 }
145 145
146 const bool is_stopped = true; 146 const bool is_stopped = true;
147 callback.Run(prefix_path.AsUTF8Unsafe(), is_stopped, is_manual_stop); 147 callback.Run(prefix_path.AsUTF8Unsafe(), is_stopped, is_manual_stop);
148 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698