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

Side by Side Diff: content/child/resource_dispatcher.cc

Issue 2914423002: Network service: move URLLoaderThrottle and ThrottlingURLLoader. (Closed)
Patch Set: Created 3 years, 6 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 | « content/child/resource_dispatcher.h ('k') | content/child/throttling_url_loader.h » ('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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/atomic_sequence_num.h" 11 #include "base/atomic_sequence_num.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/debug/alias.h" 14 #include "base/debug/alias.h"
15 #include "base/debug/dump_without_crashing.h" 15 #include "base/debug/dump_without_crashing.h"
16 #include "base/debug/stack_trace.h" 16 #include "base/debug/stack_trace.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/memory/shared_memory.h" 19 #include "base/memory/shared_memory.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "base/metrics/histogram_macros.h" 21 #include "base/metrics/histogram_macros.h"
22 #include "base/rand_util.h" 22 #include "base/rand_util.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/child/request_extra_data.h" 25 #include "content/child/request_extra_data.h"
26 #include "content/child/resource_scheduling_filter.h" 26 #include "content/child/resource_scheduling_filter.h"
27 #include "content/child/shared_memory_received_data_factory.h" 27 #include "content/child/shared_memory_received_data_factory.h"
28 #include "content/child/site_isolation_stats_gatherer.h" 28 #include "content/child/site_isolation_stats_gatherer.h"
29 #include "content/child/sync_load_response.h" 29 #include "content/child/sync_load_response.h"
30 #include "content/child/throttling_url_loader.h"
31 #include "content/child/url_loader_client_impl.h" 30 #include "content/child/url_loader_client_impl.h"
32 #include "content/common/inter_process_time_ticks_converter.h" 31 #include "content/common/inter_process_time_ticks_converter.h"
33 #include "content/common/navigation_params.h" 32 #include "content/common/navigation_params.h"
34 #include "content/common/resource_messages.h" 33 #include "content/common/resource_messages.h"
35 #include "content/common/resource_request.h" 34 #include "content/common/resource_request.h"
36 #include "content/common/resource_request_completion_status.h" 35 #include "content/common/resource_request_completion_status.h"
36 #include "content/common/throttling_url_loader.h"
37 #include "content/public/child/fixed_received_data.h" 37 #include "content/public/child/fixed_received_data.h"
38 #include "content/public/child/request_peer.h" 38 #include "content/public/child/request_peer.h"
39 #include "content/public/child/resource_dispatcher_delegate.h" 39 #include "content/public/child/resource_dispatcher_delegate.h"
40 #include "content/public/common/resource_response.h" 40 #include "content/public/common/resource_response.h"
41 #include "content/public/common/resource_type.h" 41 #include "content/public/common/resource_type.h"
42 #include "net/base/net_errors.h" 42 #include "net/base/net_errors.h"
43 #include "net/base/request_priority.h" 43 #include "net/base/request_priority.h"
44 #include "net/http/http_response_headers.h" 44 #include "net/http/http_response_headers.h"
45 45
46 namespace content { 46 namespace content {
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 delete message; 845 delete message;
846 } 846 }
847 } 847 }
848 848
849 void ResourceDispatcher::SetResourceSchedulingFilter( 849 void ResourceDispatcher::SetResourceSchedulingFilter(
850 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 850 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
851 resource_scheduling_filter_ = resource_scheduling_filter; 851 resource_scheduling_filter_ = resource_scheduling_filter;
852 } 852 }
853 853
854 } // namespace content 854 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/throttling_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698