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/webrtc_log_uploader.h" | 5 #include "chrome/browser/media/webrtc/webrtc_log_uploader.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/pickle.h" | 14 #include "base/pickle.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/strings/stringprintf.h" | |
18 #include "base/time/time.h" | 17 #include "base/time/time.h" |
19 #include "build/build_config.h" | 18 #include "build/build_config.h" |
20 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/media/media_url_constants.h" | 20 #include "chrome/browser/media/media_url_constants.h" |
22 #include "chrome/browser/media/webrtc/webrtc_log_list.h" | 21 #include "chrome/browser/media/webrtc/webrtc_log_list.h" |
23 #include "chrome/browser/media/webrtc/webrtc_log_util.h" | 22 #include "chrome/browser/media/webrtc/webrtc_log_util.h" |
24 #include "chrome/common/partial_circular_buffer.h" | 23 #include "chrome/common/partial_circular_buffer.h" |
25 #include "components/version_info/version_info.h" | 24 #include "components/version_info/version_info.h" |
26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
27 #include "net/base/mime_util.h" | 26 #include "net/base/mime_util.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 std::string error_message; | 591 std::string error_message; |
593 if (!success) { | 592 if (!success) { |
594 error_message = "Uploading failed, response code: " + | 593 error_message = "Uploading failed, response code: " + |
595 base::IntToString(response_code); | 594 base::IntToString(response_code); |
596 } | 595 } |
597 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 596 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
598 base::Bind(upload_done_data.callback, success, | 597 base::Bind(upload_done_data.callback, success, |
599 report_id, error_message)); | 598 report_id, error_message)); |
600 } | 599 } |
601 } | 600 } |
OLD | NEW |