| 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 <deque> | 10 #include <deque> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // request was found and removed. | 65 // request was found and removed. |
| 66 bool RemovePendingRequest(int request_id); | 66 bool RemovePendingRequest(int request_id); |
| 67 | 67 |
| 68 // Cancels a request in the |pending_requests_| list. | 68 // Cancels a request in the |pending_requests_| list. |
| 69 void CancelPendingRequest(int request_id); | 69 void CancelPendingRequest(int request_id); |
| 70 | 70 |
| 71 // Toggles the is_deferred attribute for the specified request. | 71 // Toggles the is_deferred attribute for the specified request. |
| 72 void SetDefersLoading(int request_id, bool value); | 72 void SetDefersLoading(int request_id, bool value); |
| 73 | 73 |
| 74 // Indicates the priority of the specified request changed. | 74 // Indicates the priority of the specified request changed. |
| 75 void DidChangePriority(int routing_id, | 75 void DidChangePriority(int request_id, |
| 76 int request_id, | |
| 77 net::RequestPriority new_priority, | 76 net::RequestPriority new_priority, |
| 78 int intra_priority_value); | 77 int intra_priority_value); |
| 79 | 78 |
| 80 IPC::Sender* message_sender() const { return message_sender_; } | 79 IPC::Sender* message_sender() const { return message_sender_; } |
| 81 | 80 |
| 82 // This does not take ownership of the delegate. It is expected that the | 81 // This does not take ownership of the delegate. It is expected that the |
| 83 // delegate have a longer lifetime than the ResourceDispatcher. | 82 // delegate have a longer lifetime than the ResourceDispatcher. |
| 84 void set_delegate(ResourceDispatcherDelegate* delegate) { | 83 void set_delegate(ResourceDispatcherDelegate* delegate) { |
| 85 delegate_ = delegate; | 84 delegate_ = delegate; |
| 86 } | 85 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 205 |
| 207 // IO thread timestamp for ongoing IPC message. | 206 // IO thread timestamp for ongoing IPC message. |
| 208 base::TimeTicks io_timestamp_; | 207 base::TimeTicks io_timestamp_; |
| 209 | 208 |
| 210 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 209 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 211 }; | 210 }; |
| 212 | 211 |
| 213 } // namespace content | 212 } // namespace content |
| 214 | 213 |
| 215 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 214 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |