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

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

Issue 1910343006: Enable setting deferral state on ResourceDispatcher at request start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 | content/child/web_url_loader_impl.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 // 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 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Removes a request from the |pending_requests_| list, returning true if the 81 // Removes a request from the |pending_requests_| list, returning true if the
82 // request was found and removed. 82 // request was found and removed.
83 bool RemovePendingRequest(int request_id); 83 bool RemovePendingRequest(int request_id);
84 84
85 // Cancels a request in the |pending_requests_| list. The request will be 85 // Cancels a request in the |pending_requests_| list. The request will be
86 // removed from the dispatcher as well. 86 // removed from the dispatcher as well.
87 virtual void Cancel(int request_id); 87 virtual void Cancel(int request_id);
88 88
89 // Toggles the is_deferred attribute for the specified request. 89 // Toggles the is_deferred attribute for the specified request.
90 void SetDefersLoading(int request_id, bool value); 90 virtual void SetDefersLoading(int request_id, bool value);
91 91
92 // Indicates the priority of the specified request changed. 92 // Indicates the priority of the specified request changed.
93 void DidChangePriority(int request_id, 93 void DidChangePriority(int request_id,
94 net::RequestPriority new_priority, 94 net::RequestPriority new_priority,
95 int intra_priority_value); 95 int intra_priority_value);
96 96
97 void set_message_sender(IPC::Sender* sender) { 97 void set_message_sender(IPC::Sender* sender) {
98 DCHECK(sender); 98 DCHECK(sender);
99 DCHECK(pending_requests_.empty()); 99 DCHECK(pending_requests_.empty());
100 message_sender_ = sender; 100 message_sender_ = sender;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 242 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
243 243
244 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 244 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 246 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
247 }; 247 };
248 248
249 } // namespace content 249 } // namespace content
250 250
251 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 251 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698