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

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

Issue 7276: Adding security info to canceled requests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months 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
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://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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool is_deferred; 101 bool is_deferred;
102 }; 102 };
103 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList; 103 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList;
104 104
105 // Message response handlers, called by the message handler for this process. 105 // Message response handlers, called by the message handler for this process.
106 void OnUploadProgress(int request_id, int64 position, int64 size); 106 void OnUploadProgress(int request_id, int64 position, int64 size);
107 void OnReceivedResponse(int request_id, const ResourceResponseHead&); 107 void OnReceivedResponse(int request_id, const ResourceResponseHead&);
108 void OnReceivedRedirect(int request_id, const GURL& new_url); 108 void OnReceivedRedirect(int request_id, const GURL& new_url);
109 void OnReceivedData(int request_id, base::SharedMemoryHandle data, 109 void OnReceivedData(int request_id, base::SharedMemoryHandle data,
110 int data_len); 110 int data_len);
111 void OnRequestComplete(int request_id, const URLRequestStatus& status); 111 void OnRequestComplete(int request_id,
112 const URLRequestStatus& status,
113 const std::string& security_info);
112 114
113 // Dispatch the message to one of the message response handlers. 115 // Dispatch the message to one of the message response handlers.
114 void DispatchMessage(const IPC::Message& message); 116 void DispatchMessage(const IPC::Message& message);
115 117
116 // Dispatch any deferred messages for the given request, provided it is not 118 // Dispatch any deferred messages for the given request, provided it is not
117 // again in the deferred state. 119 // again in the deferred state.
118 void FlushDeferredMessages(int request_id); 120 void FlushDeferredMessages(int request_id);
119 121
120 IPC::Message::Sender* message_sender_; 122 IPC::Message::Sender* message_sender_;
121 123
122 // All pending requests issued to the host 124 // All pending requests issued to the host
123 PendingRequestList pending_requests_; 125 PendingRequestList pending_requests_;
124 126
125 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; 127 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_;
126 128
127 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); 129 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher);
128 }; 130 };
129 131
130 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ 132 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698