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 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Signals from IPC messages directly from the renderers: | 72 // Signals from IPC messages directly from the renderers: |
73 | 73 |
74 // Called when a client navigates to a new main document. | 74 // Called when a client navigates to a new main document. |
75 void OnNavigate(int child_id, int route_id); | 75 void OnNavigate(int child_id, int route_id); |
76 | 76 |
77 // Called when the client has parsed the <body> element. This is a signal that | 77 // Called when the client has parsed the <body> element. This is a signal that |
78 // resource loads won't interfere with first paint. | 78 // resource loads won't interfere with first paint. |
79 void OnWillInsertBody(int child_id, int route_id); | 79 void OnWillInsertBody(int child_id, int route_id); |
80 | 80 |
| 81 // Signals from the IO thread |
| 82 |
| 83 // Called when we received a response to a http request that was served |
| 84 // from a proxy using SPDY. |
| 85 void OnReceivedSpdyProxiedHttpResponse(int child_id, int route_id); |
| 86 |
81 private: | 87 private: |
82 class RequestQueue; | 88 class RequestQueue; |
83 class ScheduledResourceRequest; | 89 class ScheduledResourceRequest; |
84 struct Client; | 90 struct Client; |
85 | 91 |
86 typedef int64 ClientId; | 92 typedef int64 ClientId; |
87 typedef std::map<ClientId, Client*> ClientMap; | 93 typedef std::map<ClientId, Client*> ClientMap; |
88 typedef std::set<ScheduledResourceRequest*> RequestSet; | 94 typedef std::set<ScheduledResourceRequest*> RequestSet; |
89 | 95 |
90 // Called when a ScheduledResourceRequest is destroyed. | 96 // Called when a ScheduledResourceRequest is destroyed. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Returns the client ID for the given |child_id| and |route_id| combo. | 134 // Returns the client ID for the given |child_id| and |route_id| combo. |
129 ClientId MakeClientId(int child_id, int route_id); | 135 ClientId MakeClientId(int child_id, int route_id); |
130 | 136 |
131 ClientMap client_map_; | 137 ClientMap client_map_; |
132 RequestSet unowned_requests_; | 138 RequestSet unowned_requests_; |
133 }; | 139 }; |
134 | 140 |
135 } // namespace content | 141 } // namespace content |
136 | 142 |
137 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 143 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
OLD | NEW |