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

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

Issue 6328010: Fix Task Manager to correctly display network usage of plug-in processes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix the way Task Manager accounts for network usage by plug-ins. 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // The origin of the main frame (top-level frame) that is associated with this 449 // The origin of the main frame (top-level frame) that is associated with this
450 // request. This is used to update our insecure content state. 450 // request. This is used to update our insecure content state.
451 std::string main_frame_origin; 451 std::string main_frame_origin;
452 452
453 // Additional HTTP request headers. 453 // Additional HTTP request headers.
454 std::string headers; 454 std::string headers;
455 455
456 // net::URLRequest load flags (0 by default). 456 // net::URLRequest load flags (0 by default).
457 int load_flags; 457 int load_flags;
458 458
459 // Unique ID of process that originated this request. For normal renderer 459 // Process ID of the originator of this request. For normal renderer requests
460 // requests, this will be the ID of the renderer. For plugin requests routed 460 // this will be the render host process ID. For plugin requests, it will be
461 // through the renderer, this will be the plugin's ID. 461 // the plugin process ID. The ResourceDispatcherHost will map the origin PID
462 int origin_child_id; 462 // to the corresponding child ID upon receipt of this message.
463 int origin_pid;
463 464
464 // What this resource load is for (main frame, sub-frame, sub-resource, 465 // What this resource load is for (main frame, sub-frame, sub-resource,
465 // object). 466 // object).
466 ResourceType::Type resource_type; 467 ResourceType::Type resource_type;
467 468
468 // Used by plugin->browser requests to get the correct net::URLRequestContext. 469 // Used by plugin->browser requests to get the correct net::URLRequestContext.
469 uint32 request_context; 470 uint32 request_context;
470 471
471 // Indicates which frame (or worker context) the request is being loaded into, 472 // Indicates which frame (or worker context) the request is being loaded into,
472 // or kNoHostId. 473 // or kNoHostId.
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { 1155 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> {
1155 typedef ViewHostMsg_AccessibilityNotification_Params param_type; 1156 typedef ViewHostMsg_AccessibilityNotification_Params param_type;
1156 static void Write(Message* m, const param_type& p); 1157 static void Write(Message* m, const param_type& p);
1157 static bool Read(const Message* m, void** iter, param_type* p); 1158 static bool Read(const Message* m, void** iter, param_type* p);
1158 static void Log(const param_type& p, std::string* l); 1159 static void Log(const param_type& p, std::string* l);
1159 }; 1160 };
1160 1161
1161 } // namespace IPC 1162 } // namespace IPC
1162 1163
1163 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 1164 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698