| 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" |
| 10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 const char kWebRtcLogDirectory[] = "WebRTC Logs"; | 17 const char kWebRtcLogDirectory[] = "WebRTC Logs"; |
| 17 const char kWebRtcLogListFilename[] = "Log List"; | 18 const char kWebRtcLogListFilename[] = "Log List"; |
| 18 | 19 |
| 19 } | 20 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 DCHECK(!profile_path.empty()); | 34 DCHECK(!profile_path.empty()); |
| 34 return profile_path.AppendASCII(kWebRtcLogDirectory); | 35 return profile_path.AppendASCII(kWebRtcLogDirectory); |
| 35 } | 36 } |
| 36 | 37 |
| 37 // static | 38 // static |
| 38 base::FilePath WebRtcLogList::GetWebRtcLogListFileForDirectory( | 39 base::FilePath WebRtcLogList::GetWebRtcLogListFileForDirectory( |
| 39 const base::FilePath& dir) { | 40 const base::FilePath& dir) { |
| 40 DCHECK(!dir.empty()); | 41 DCHECK(!dir.empty()); |
| 41 return dir.AppendASCII(kWebRtcLogListFilename); | 42 return dir.AppendASCII(kWebRtcLogListFilename); |
| 42 } | 43 } |
| OLD | NEW |