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

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

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/render_messages_params.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) 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // Unique request id to match requests and responses. 323 // Unique request id to match requests and responses.
324 int request_id; 324 int request_id;
325 325
326 // True if request has a callback specified. 326 // True if request has a callback specified.
327 bool has_callback; 327 bool has_callback;
328 328
329 // True if request is executed in response to an explicit user gesture. 329 // True if request is executed in response to an explicit user gesture.
330 bool user_gesture; 330 bool user_gesture;
331 }; 331 };
332 332
333 struct ViewHostMsg_AccessibilityNotification_Params {
334 enum NotificationType {
335 // The node checked state has changed.
336 NOTIFICATION_TYPE_CHECK_STATE_CHANGED,
337
338 // The node tree structure has changed.
339 NOTIFICATION_TYPE_CHILDREN_CHANGED,
340
341 // The node in focus has changed.
342 NOTIFICATION_TYPE_FOCUS_CHANGED,
343
344 // The document node has loaded.
345 NOTIFICATION_TYPE_LOAD_COMPLETE,
346
347 // The node value has changed.
348 NOTIFICATION_TYPE_VALUE_CHANGED,
349
350 // The text cursor or selection changed.
351 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED,
352 };
353
354 // Type of notification.
355 NotificationType notification_type;
356
357 // The accessibility node tree.
358 webkit_glue::WebAccessibility acc_obj;
359 };
360
361 // A node is essentially a frame.
362 struct ViewHostMsg_MalwareDOMDetails_Node {
363 ViewHostMsg_MalwareDOMDetails_Node();
364 ~ViewHostMsg_MalwareDOMDetails_Node();
365
366 // URL of this resource. Can be empty.
367 GURL url;
368
369 // If this resource was in the "src" attribute of a tag, this is the tagname
370 // (eg "IFRAME"). Can be empty.
371 std::string tag_name;
372
373 // URL of the parent node. Can be empty.
374 GURL parent;
375
376 // children of this node. Can be emtpy.
377 std::vector<GURL> children;
378 };
379
380 // Parameters to describe interesting details from a rendered page that lead
381 // to a malware warning.
382 struct ViewHostMsg_MalwareDOMDetails_Params {
383 ViewHostMsg_MalwareDOMDetails_Params();
384 ~ViewHostMsg_MalwareDOMDetails_Params();
385
386 // All the nodes we extracted.
387 std::vector<ViewHostMsg_MalwareDOMDetails_Node> nodes;
388 };
389
390
391 namespace IPC { 333 namespace IPC {
392 334
393 class Message; 335 class Message;
394 336
395 template <> 337 template <>
396 struct ParamTraits<ViewHostMsg_PageHasOSDD_Type> { 338 struct ParamTraits<ViewHostMsg_PageHasOSDD_Type> {
397 typedef ViewHostMsg_PageHasOSDD_Type param_type; 339 typedef ViewHostMsg_PageHasOSDD_Type param_type;
398 static void Write(Message* m, const param_type& p); 340 static void Write(Message* m, const param_type& p);
399 static bool Read(const Message* m, void** iter, param_type* p); 341 static bool Read(const Message* m, void** iter, param_type* p);
400 static void Log(const param_type& p, std::string* l); 342 static void Log(const param_type& p, std::string* l);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 }; 415 };
474 416
475 template <> 417 template <>
476 struct ParamTraits<ViewHostMsg_DomMessage_Params> { 418 struct ParamTraits<ViewHostMsg_DomMessage_Params> {
477 typedef ViewHostMsg_DomMessage_Params param_type; 419 typedef ViewHostMsg_DomMessage_Params param_type;
478 static void Write(Message* m, const param_type& p); 420 static void Write(Message* m, const param_type& p);
479 static bool Read(const Message* m, void** iter, param_type* p); 421 static bool Read(const Message* m, void** iter, param_type* p);
480 static void Log(const param_type& p, std::string* l); 422 static void Log(const param_type& p, std::string* l);
481 }; 423 };
482 424
483 template <>
484 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> {
485 typedef ViewHostMsg_AccessibilityNotification_Params param_type;
486 static void Write(Message* m, const param_type& p);
487 static bool Read(const Message* m, void** iter, param_type* p);
488 static void Log(const param_type& p, std::string* l);
489 };
490
491 template <>
492 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Params> {
493 typedef ViewHostMsg_MalwareDOMDetails_Params param_type;
494 static void Write(Message* m, const param_type& p);
495 static bool Read(const Message* m, void** iter, param_type* p);
496 static void Log(const param_type& p, std::string* l);
497 };
498
499 template <>
500 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> {
501 typedef ViewHostMsg_MalwareDOMDetails_Node param_type;
502 static void Write(Message* m, const param_type& p);
503 static bool Read(const Message* m, void** iter, param_type* p);
504 static void Log(const param_type& p, std::string* l);
505 };
506
507 } // namespace IPC 425 } // namespace IPC
508 426
509 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 427 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698