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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 IPC::Sender* message_sender() const { | 59 IPC::Sender* message_sender() const { |
60 return message_sender_; | 60 return message_sender_; |
61 } | 61 } |
62 | 62 |
63 // Toggles the is_deferred attribute for the specified request. | 63 // Toggles the is_deferred attribute for the specified request. |
64 void SetDefersLoading(int request_id, bool value); | 64 void SetDefersLoading(int request_id, bool value); |
65 | 65 |
66 // Indicates the priority of the specified request changed. | 66 // Indicates the priority of the specified request changed. |
67 void DidChangePriority(int routing_id, int request_id, | 67 void DidChangePriority(int routing_id, int request_id, |
68 net::RequestPriority new_priority, int value); | 68 net::RequestPriority new_priority, |
| 69 int intra_priority_value); |
69 | 70 |
70 // This does not take ownership of the delegate. It is expected that the | 71 // This does not take ownership of the delegate. It is expected that the |
71 // delegate have a longer lifetime than the ResourceDispatcher. | 72 // delegate have a longer lifetime than the ResourceDispatcher. |
72 void set_delegate(ResourceDispatcherDelegate* delegate) { | 73 void set_delegate(ResourceDispatcherDelegate* delegate) { |
73 delegate_ = delegate; | 74 delegate_ = delegate; |
74 } | 75 } |
75 | 76 |
76 // Remembers IO thread timestamp for next resource message. | 77 // Remembers IO thread timestamp for next resource message. |
77 void set_io_timestamp(base::TimeTicks io_timestamp) { | 78 void set_io_timestamp(base::TimeTicks io_timestamp) { |
78 io_timestamp_ = io_timestamp; | 79 io_timestamp_ = io_timestamp; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 202 |
202 // IO thread timestamp for ongoing IPC message. | 203 // IO thread timestamp for ongoing IPC message. |
203 base::TimeTicks io_timestamp_; | 204 base::TimeTicks io_timestamp_; |
204 | 205 |
205 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 206 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
206 }; | 207 }; |
207 | 208 |
208 } // namespace content | 209 } // namespace content |
209 | 210 |
210 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 211 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
OLD | NEW |