Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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); | 68 net::RequestPriority new_priority); |
| 69 | 69 |
| 70 // Construct a WebParserResourceBridgeImpl for passing back to Blink. | |
| 71 blink::WebParserResourceBridge* ConstructParserResourceBridge(int request_id); | |
| 72 // Callback from the WebParserResourceBridgeImpl happening when its | |
|
jam
2013/12/17 00:44:40
nit: blank line above this.
oystein (OOO til 10th of July)
2013/12/17 01:07:27
Done.
| |
| 73 // resource filter has been installed on the I/O thread. | |
| 74 void OnParserResourceMessageFilterAdded(int request_id); | |
| 75 | |
| 70 // This does not take ownership of the delegate. It is expected that the | 76 // This does not take ownership of the delegate. It is expected that the |
| 71 // delegate have a longer lifetime than the ResourceDispatcher. | 77 // delegate have a longer lifetime than the ResourceDispatcher. |
| 72 void set_delegate(ResourceDispatcherDelegate* delegate) { | 78 void set_delegate(ResourceDispatcherDelegate* delegate) { |
| 73 delegate_ = delegate; | 79 delegate_ = delegate; |
| 74 } | 80 } |
| 75 | 81 |
| 76 // Remembers IO thread timestamp for next resource message. | 82 // Remembers IO thread timestamp for next resource message. |
| 77 void set_io_timestamp(base::TimeTicks io_timestamp) { | 83 void set_io_timestamp(base::TimeTicks io_timestamp) { |
| 78 io_timestamp_ = io_timestamp; | 84 io_timestamp_ = io_timestamp; |
| 79 } | 85 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 | 207 |
| 202 // IO thread timestamp for ongoing IPC message. | 208 // IO thread timestamp for ongoing IPC message. |
| 203 base::TimeTicks io_timestamp_; | 209 base::TimeTicks io_timestamp_; |
| 204 | 210 |
| 205 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 211 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 206 }; | 212 }; |
| 207 | 213 |
| 208 } // namespace content | 214 } // namespace content |
| 209 | 215 |
| 210 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 216 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |