OLD | NEW |
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_log_uploader.h" | 5 #include "chrome/browser/media/webrtc_log_uploader.h" |
6 | 6 |
7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.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/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
14 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
16 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/media/webrtc_log_list.h" | 16 #include "chrome/browser/media/webrtc_log_list.h" |
18 #include "chrome/browser/media/webrtc_log_util.h" | 17 #include "chrome/browser/media/webrtc_log_util.h" |
19 #include "chrome/common/chrome_version_info.h" | 18 #include "chrome/common/chrome_version_info.h" |
20 #include "chrome/common/partial_circular_buffer.h" | 19 #include "chrome/common/partial_circular_buffer.h" |
21 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 if (!success) { | 453 if (!success) { |
455 error_message = "Uploading failed, response code: " + | 454 error_message = "Uploading failed, response code: " + |
456 base::IntToString(response_code); | 455 base::IntToString(response_code); |
457 } | 456 } |
458 content::BrowserThread::PostTask( | 457 content::BrowserThread::PostTask( |
459 content::BrowserThread::UI, FROM_HERE, | 458 content::BrowserThread::UI, FROM_HERE, |
460 base::Bind(upload_done_data.callback, success, report_id, | 459 base::Bind(upload_done_data.callback, success, report_id, |
461 error_message)); | 460 error_message)); |
462 } | 461 } |
463 } | 462 } |
OLD | NEW |