| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/webrtc_log_list.h" | 5 #include "chrome/browser/media/webrtc/webrtc_log_list.h" |
| 6 | 6 |
| 7 #include "base/files/file.h" | 7 #include "base/files/file.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | |
| 11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 const char kWebRtcLogDirectory[] = "WebRTC Logs"; | 16 const char kWebRtcLogDirectory[] = "WebRTC Logs"; |
| 18 const char kWebRtcLogListFilename[] = "Log List"; | 17 const char kWebRtcLogListFilename[] = "Log List"; |
| 19 | 18 |
| 20 } | 19 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 DCHECK(!profile_path.empty()); | 33 DCHECK(!profile_path.empty()); |
| 35 return profile_path.AppendASCII(kWebRtcLogDirectory); | 34 return profile_path.AppendASCII(kWebRtcLogDirectory); |
| 36 } | 35 } |
| 37 | 36 |
| 38 // static | 37 // static |
| 39 base::FilePath WebRtcLogList::GetWebRtcLogListFileForDirectory( | 38 base::FilePath WebRtcLogList::GetWebRtcLogListFileForDirectory( |
| 40 const base::FilePath& dir) { | 39 const base::FilePath& dir) { |
| 41 DCHECK(!dir.empty()); | 40 DCHECK(!dir.empty()); |
| 42 return dir.AppendASCII(kWebRtcLogListFilename); | 41 return dir.AppendASCII(kWebRtcLogListFilename); |
| 43 } | 42 } |
| OLD | NEW |