| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 IPC::Sender* message_sender() const { | 70 IPC::Sender* message_sender() const { |
| 71 return message_sender_; | 71 return message_sender_; |
| 72 } | 72 } |
| 73 | 73 |
| 74 // Toggles the is_deferred attribute for the specified request. | 74 // Toggles the is_deferred attribute for the specified request. |
| 75 void SetDefersLoading(int request_id, bool value); | 75 void SetDefersLoading(int request_id, bool value); |
| 76 | 76 |
| 77 // Indicates the priority of the specified request changed. | 77 // Indicates the priority of the specified request changed. |
| 78 void DidChangePriority(int routing_id, int request_id, | 78 void DidChangePriority(int routing_id, int request_id, |
| 79 net::RequestPriority new_priority); | 79 net::RequestPriority new_priority, |
| 80 int intra_priority_value); |
| 80 | 81 |
| 81 // This does not take ownership of the delegate. It is expected that the | 82 // This does not take ownership of the delegate. It is expected that the |
| 82 // delegate have a longer lifetime than the ResourceDispatcher. | 83 // delegate have a longer lifetime than the ResourceDispatcher. |
| 83 void set_delegate(ResourceDispatcherDelegate* delegate) { | 84 void set_delegate(ResourceDispatcherDelegate* delegate) { |
| 84 delegate_ = delegate; | 85 delegate_ = delegate; |
| 85 } | 86 } |
| 86 | 87 |
| 87 // Remembers IO thread timestamp for next resource message. | 88 // Remembers IO thread timestamp for next resource message. |
| 88 void set_io_timestamp(base::TimeTicks io_timestamp) { | 89 void set_io_timestamp(base::TimeTicks io_timestamp) { |
| 89 io_timestamp_ = io_timestamp; | 90 io_timestamp_ = io_timestamp; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 212 |
| 212 // IO thread timestamp for ongoing IPC message. | 213 // IO thread timestamp for ongoing IPC message. |
| 213 base::TimeTicks io_timestamp_; | 214 base::TimeTicks io_timestamp_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 216 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace content | 219 } // namespace content |
| 219 | 220 |
| 220 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 221 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |