| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |