| 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/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" | 17 #include "base/strings/stringprintf.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/media/media_url_constants.h" | 21 #include "chrome/browser/media/media_url_constants.h" |
| 22 #include "chrome/browser/media/webrtc_log_list.h" | 22 #include "chrome/browser/media/webrtc/webrtc_log_list.h" |
| 23 #include "chrome/browser/media/webrtc_log_util.h" | 23 #include "chrome/browser/media/webrtc/webrtc_log_util.h" |
| 24 #include "chrome/common/partial_circular_buffer.h" | 24 #include "chrome/common/partial_circular_buffer.h" |
| 25 #include "components/version_info/version_info.h" | 25 #include "components/version_info/version_info.h" |
| 26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 27 #include "net/base/mime_util.h" | 27 #include "net/base/mime_util.h" |
| 28 #include "net/url_request/url_fetcher.h" | 28 #include "net/url_request/url_fetcher.h" |
| 29 #include "third_party/zlib/zlib.h" | 29 #include "third_party/zlib/zlib.h" |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 std::string error_message; | 592 std::string error_message; |
| 593 if (!success) { | 593 if (!success) { |
| 594 error_message = "Uploading failed, response code: " + | 594 error_message = "Uploading failed, response code: " + |
| 595 base::IntToString(response_code); | 595 base::IntToString(response_code); |
| 596 } | 596 } |
| 597 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 597 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
| 598 base::Bind(upload_done_data.callback, success, | 598 base::Bind(upload_done_data.callback, success, |
| 599 report_id, error_message)); | 599 report_id, error_message)); |
| 600 } | 600 } |
| 601 } | 601 } |
| OLD | NEW |