| 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 "content/browser/tracing/trace_uploader.h" | 5 #include "content/browser/tracing/trace_uploader.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
| 9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
| 16 #include "net/base/network_delegate.h" | 16 #include "net/base/network_delegate.h" |
| 17 #include "net/proxy/proxy_config.h" | 17 #include "net/proxy/proxy_config.h" |
| 18 #include "net/proxy/proxy_config_service.h" | 18 #include "net/proxy/proxy_config_service.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 content_type.append(kMultipartBoundary); | 202 content_type.append(kMultipartBoundary); |
| 203 | 203 |
| 204 url_fetcher_.reset( | 204 url_fetcher_.reset( |
| 205 net::URLFetcher::Create(GURL(upload_url_), net::URLFetcher::POST, this)); | 205 net::URLFetcher::Create(GURL(upload_url_), net::URLFetcher::POST, this)); |
| 206 url_fetcher_->SetRequestContext(request_context_); | 206 url_fetcher_->SetRequestContext(request_context_); |
| 207 url_fetcher_->SetUploadData(content_type, post_data); | 207 url_fetcher_->SetUploadData(content_type, post_data); |
| 208 url_fetcher_->Start(); | 208 url_fetcher_->Start(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace content | 211 } // namespace content |
| OLD | NEW |