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

Side by Side Diff: net/url_request/test_url_fetcher_factory.cc

Issue 2846873002: Network traffic annotation added to URLFetcher. (Closed)
Patch Set: Unnecessary const(s) removed. Created 3 years, 7 months 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
« no previous file with comments | « no previous file | net/url_request/url_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/url_request/test_url_fetcher_factory.h" 5 #include "net/url_request/test_url_fetcher_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
17 #include "base/threading/sequenced_task_runner_handle.h" 17 #include "base/threading/sequenced_task_runner_handle.h"
18 #include "base/threading/thread_restrictions.h" 18 #include "base/threading/thread_restrictions.h"
19 #include "net/base/host_port_pair.h" 19 #include "net/base/host_port_pair.h"
20 #include "net/base/io_buffer.h" 20 #include "net/base/io_buffer.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
22 #include "net/base/upload_data_stream.h" 22 #include "net/base/upload_data_stream.h"
23 #include "net/http/http_response_headers.h" 23 #include "net/http/http_response_headers.h"
24 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
24 #include "net/url_request/url_fetcher_delegate.h" 25 #include "net/url_request/url_fetcher_delegate.h"
25 #include "net/url_request/url_fetcher_impl.h" 26 #include "net/url_request/url_fetcher_impl.h"
26 #include "net/url_request/url_fetcher_response_writer.h" 27 #include "net/url_request/url_fetcher_response_writer.h"
27 #include "net/url_request/url_request_status.h" 28 #include "net/url_request/url_request_status.h"
28 29
29 namespace net { 30 namespace net {
30 31
31 ScopedURLFetcherFactory::ScopedURLFetcherFactory( 32 ScopedURLFetcherFactory::ScopedURLFetcherFactory(
32 URLFetcherFactory* factory) { 33 URLFetcherFactory* factory) {
33 DCHECK(!URLFetcherImpl::factory()); 34 DCHECK(!URLFetcherImpl::factory());
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 479
479 URLFetcherImplFactory::URLFetcherImplFactory() {} 480 URLFetcherImplFactory::URLFetcherImplFactory() {}
480 481
481 URLFetcherImplFactory::~URLFetcherImplFactory() {} 482 URLFetcherImplFactory::~URLFetcherImplFactory() {}
482 483
483 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( 484 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher(
484 int id, 485 int id,
485 const GURL& url, 486 const GURL& url,
486 URLFetcher::RequestType request_type, 487 URLFetcher::RequestType request_type,
487 URLFetcherDelegate* d) { 488 URLFetcherDelegate* d) {
488 return std::unique_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); 489 return std::unique_ptr<URLFetcher>(
490 new URLFetcherImpl(url, request_type, d, TRAFFIC_ANNOTATION_FOR_TESTS));
489 } 491 }
490 492
491 } // namespace net 493 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698