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

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

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address eroman's comments Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/extensions/url_pattern.h" 21 #include "chrome/common/extensions/url_pattern.h"
22 #include "chrome/common/navigation_gesture.h" 22 #include "chrome/common/navigation_gesture.h"
23 #include "chrome/common/navigation_types.h" 23 #include "chrome/common/navigation_types.h"
24 #include "chrome/common/page_transition_types.h" 24 #include "chrome/common/page_transition_types.h"
25 #include "chrome/common/renderer_preferences.h" 25 #include "chrome/common/renderer_preferences.h"
26 #include "chrome/common/serialized_script_value.h" 26 #include "chrome/common/serialized_script_value.h"
27 #include "chrome/common/window_container_type.h" 27 #include "chrome/common/window_container_type.h"
28 #include "googleurl/src/gurl.h" 28 #include "googleurl/src/gurl.h"
29 #include "ipc/ipc_param_traits.h" 29 #include "ipc/ipc_param_traits.h"
30 #include "media/audio/audio_parameters.h" 30 #include "media/audio/audio_parameters.h"
31 #include "net/base/host_port_pair.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
32 #include "ui/gfx/rect.h" 33 #include "ui/gfx/rect.h"
33 #include "ui/gfx/size.h" 34 #include "ui/gfx/size.h"
34 #include "webkit/glue/password_form.h" 35 #include "webkit/glue/password_form.h"
35 #include "webkit/glue/resource_type.h" 36 #include "webkit/glue/resource_type.h"
36 #include "webkit/glue/webaccessibility.h" 37 #include "webkit/glue/webaccessibility.h"
37 #include "webkit/glue/webmenuitem.h" 38 #include "webkit/glue/webmenuitem.h"
38 #include "webkit/glue/webpreferences.h" 39 #include "webkit/glue/webpreferences.h"
39 #include "webkit/plugins/npapi/webplugin.h" 40 #include "webkit/plugins/npapi/webplugin.h"
40 41
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // (this can happen if the resource was insecure). 297 // (this can happen if the resource was insecure).
297 bool is_content_filtered; 298 bool is_content_filtered;
298 299
299 // Whether the frame navigation resulted in no change to the documents within 300 // Whether the frame navigation resulted in no change to the documents within
300 // the page. For example, the navigation may have just resulted in scrolling 301 // the page. For example, the navigation may have just resulted in scrolling
301 // to a named anchor. 302 // to a named anchor.
302 bool was_within_same_page; 303 bool was_within_same_page;
303 304
304 // The status code of the HTTP request. 305 // The status code of the HTTP request.
305 int http_status_code; 306 int http_status_code;
307
308 // Remote address of the socket which fetched this resource.
309 net::HostPortPair socket_address;
306 }; 310 };
307 311
308 // Values that may be OR'd together to form the 'flags' parameter of a 312 // Values that may be OR'd together to form the 'flags' parameter of a
309 // ViewHostMsg_UpdateRect_Params structure. 313 // ViewHostMsg_UpdateRect_Params structure.
310 struct ViewHostMsg_UpdateRect_Flags { 314 struct ViewHostMsg_UpdateRect_Flags {
311 enum { 315 enum {
312 IS_RESIZE_ACK = 1 << 0, 316 IS_RESIZE_ACK = 1 << 0,
313 IS_RESTORE_ACK = 1 << 1, 317 IS_RESTORE_ACK = 1 << 1,
314 IS_REPAINT_ACK = 1 << 2, 318 IS_REPAINT_ACK = 1 << 2,
315 }; 319 };
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> { 1187 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> {
1184 typedef ViewHostMsg_MalwareDOMDetails_Node param_type; 1188 typedef ViewHostMsg_MalwareDOMDetails_Node param_type;
1185 static void Write(Message* m, const param_type& p); 1189 static void Write(Message* m, const param_type& p);
1186 static bool Read(const Message* m, void** iter, param_type* p); 1190 static bool Read(const Message* m, void** iter, param_type* p);
1187 static void Log(const param_type& p, std::string* l); 1191 static void Log(const param_type& p, std::string* l);
1188 }; 1192 };
1189 1193
1190 } // namespace IPC 1194 } // namespace IPC
1191 1195
1192 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 1196 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698