Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: content/browser/tracing/trace_uploader.cc

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix missing part device_cloud_policy_manager_chromeos_unittest.cc Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "net/base/mime_util.h" 14 #include "net/base/mime_util.h"
15 #include "net/base/network_delegate.h" 15 #include "net/base/network_delegate.h"
16 #include "net/proxy/proxy_config.h" 16 #include "net/proxy/proxy_config.h"
17 #include "net/proxy/proxy_config_service.h" 17 #include "net/proxy/proxy_config_service.h"
18 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
19 #include "net/url_request/url_request_context.h" 19 #include "net/url_request/url_request_context.h"
20 #include "net/url_request/url_request_context_builder.h" 20 #include "net/url_request/url_request_context_builder.h"
21 #include "net/url_request/url_request_context_getter.h" 21 #include "net/url_request/url_request_context_getter.h"
22 #include "third_party/zlib/zlib.h" 22 #include "third_party/zlib/zlib.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 24
25 using std::string;
26
25 namespace content { 27 namespace content {
26 namespace { 28 namespace {
27 const char kUploadContentType[] = "multipart/form-data"; 29 const char kUploadContentType[] = "multipart/form-data";
28 const char kMultipartBoundary[] = 30 const char kMultipartBoundary[] =
29 "----**--yradnuoBgoLtrapitluMklaTelgooG--**----"; 31 "----**--yradnuoBgoLtrapitluMklaTelgooG--**----";
30 32
31 const int kHttpResponseOk = 200; 33 const int kHttpResponseOk = 200;
32 34
33 } // namespace 35 } // namespace
34 36
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 content_type.append(kMultipartBoundary); 203 content_type.append(kMultipartBoundary);
202 204
203 url_fetcher_.reset( 205 url_fetcher_.reset(
204 net::URLFetcher::Create(GURL(upload_url_), net::URLFetcher::POST, this)); 206 net::URLFetcher::Create(GURL(upload_url_), net::URLFetcher::POST, this));
205 url_fetcher_->SetRequestContext(request_context_); 207 url_fetcher_->SetRequestContext(request_context_);
206 url_fetcher_->SetUploadData(content_type, post_data); 208 url_fetcher_->SetUploadData(content_type, post_data);
207 url_fetcher_->Start(); 209 url_fetcher_->Start();
208 } 210 }
209 211
210 } // namespace content 212 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_scheduler_unittest.cc ('k') | google_apis/drive/drive_api_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698