OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 7 #ifndef CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 }; | 84 }; |
85 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList; | 85 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList; |
86 | 86 |
87 // Message response handlers, called by the message handler for this process. | 87 // Message response handlers, called by the message handler for this process. |
88 void OnUploadProgress( | 88 void OnUploadProgress( |
89 const IPC::Message& message, | 89 const IPC::Message& message, |
90 int request_id, | 90 int request_id, |
91 int64 position, | 91 int64 position, |
92 int64 size); | 92 int64 size); |
93 void OnReceivedResponse(int request_id, const ResourceResponseHead&); | 93 void OnReceivedResponse(int request_id, const ResourceResponseHead&); |
| 94 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); |
94 void OnReceivedRedirect( | 95 void OnReceivedRedirect( |
95 const IPC::Message& message, | 96 const IPC::Message& message, |
96 int request_id, | 97 int request_id, |
97 const GURL& new_url, | 98 const GURL& new_url, |
98 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info); | 99 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info); |
99 void OnReceivedData( | 100 void OnReceivedData( |
100 const IPC::Message& message, | 101 const IPC::Message& message, |
101 int request_id, | 102 int request_id, |
102 base::SharedMemoryHandle data, | 103 base::SharedMemoryHandle data, |
103 int data_len); | 104 int data_len); |
(...skipping 27 matching lines...) Expand all Loading... |
131 | 132 |
132 // All pending requests issued to the host | 133 // All pending requests issued to the host |
133 PendingRequestList pending_requests_; | 134 PendingRequestList pending_requests_; |
134 | 135 |
135 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; | 136 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 138 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
138 }; | 139 }; |
139 | 140 |
140 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 141 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
OLD | NEW |