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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 IPC::Sender* message_sender() const { | 64 IPC::Sender* message_sender() const { |
65 return message_sender_; | 65 return message_sender_; |
66 } | 66 } |
67 | 67 |
68 // Toggles the is_deferred attribute for the specified request. | 68 // Toggles the is_deferred attribute for the specified request. |
69 void SetDefersLoading(int request_id, bool value); | 69 void SetDefersLoading(int request_id, bool value); |
70 | 70 |
71 // Indicates the priority of the specified request changed. | 71 // Indicates the priority of the specified request changed. |
72 void DidChangePriority(int routing_id, int request_id, | 72 void DidChangePriority(int routing_id, int request_id, |
73 net::RequestPriority new_priority, | 73 net::RequestPriority new_priority); |
74 int intra_priority_value); | |
75 | 74 |
76 // This does not take ownership of the delegate. It is expected that the | 75 // This does not take ownership of the delegate. It is expected that the |
77 // delegate have a longer lifetime than the ResourceDispatcher. | 76 // delegate have a longer lifetime than the ResourceDispatcher. |
78 void set_delegate(ResourceDispatcherDelegate* delegate) { | 77 void set_delegate(ResourceDispatcherDelegate* delegate) { |
79 delegate_ = delegate; | 78 delegate_ = delegate; |
80 } | 79 } |
81 | 80 |
82 // Remembers IO thread timestamp for next resource message. | 81 // Remembers IO thread timestamp for next resource message. |
83 void set_io_timestamp(base::TimeTicks io_timestamp) { | 82 void set_io_timestamp(base::TimeTicks io_timestamp) { |
84 io_timestamp_ = io_timestamp; | 83 io_timestamp_ = io_timestamp; |
(...skipping 121 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 |