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