Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: chrome/common/resource_dispatcher.h

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc eLoading 5 // See http://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc eLoading
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 <windows.h> 10 #include <windows.h>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 MessageQueue deferred_message_queue; 94 MessageQueue deferred_message_queue;
95 bool mixed_content; 95 bool mixed_content;
96 bool is_deferred; 96 bool is_deferred;
97 }; 97 };
98 typedef base::hash_map<int,PendingRequestInfo> PendingRequestList; 98 typedef base::hash_map<int,PendingRequestInfo> PendingRequestList;
99 99
100 // Message response handlers, called by the message handler for this process. 100 // Message response handlers, called by the message handler for this process.
101 void OnUploadProgress(int request_id, int64 position, int64 size); 101 void OnUploadProgress(int request_id, int64 position, int64 size);
102 void OnReceivedResponse(int request_id, const ViewMsg_Resource_ResponseHead&); 102 void OnReceivedResponse(int request_id, const ViewMsg_Resource_ResponseHead&);
103 void OnReceivedRedirect(int request_id, const GURL& new_url); 103 void OnReceivedRedirect(int request_id, const GURL& new_url);
104 void OnReceivedData(int request_id, SharedMemoryHandle data, int data_len); 104 void OnReceivedData(int request_id, base::SharedMemoryHandle data,
105 int data_len);
105 void OnRequestComplete(int request_id, const URLRequestStatus& status); 106 void OnRequestComplete(int request_id, const URLRequestStatus& status);
106 107
107 // Dispatch the message to one of the message response handlers. 108 // Dispatch the message to one of the message response handlers.
108 void DispatchMessage(const IPC::Message& message); 109 void DispatchMessage(const IPC::Message& message);
109 110
110 // Dispatch any deferred messages for the given request, provided it is not 111 // Dispatch any deferred messages for the given request, provided it is not
111 // again in the deferred state. 112 // again in the deferred state.
112 void FlushDeferredMessages(int request_id); 113 void FlushDeferredMessages(int request_id);
113 114
114 IPC::Message::Sender* message_sender_; 115 IPC::Message::Sender* message_sender_;
115 116
116 // All pending requests issued to the host 117 // All pending requests issued to the host
117 PendingRequestList pending_requests_; 118 PendingRequestList pending_requests_;
118 119
119 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; 120 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_;
120 121
121 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); 122 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher);
122 }; 123 };
123 124
124 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ 125 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698