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

Side by Side Diff: content/renderer/dom_automation_controller.h

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
« no previous file with comments | « content/public/utility/utility_thread.h ('k') | content/renderer/gpu/compositor_thread.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ 5 #ifndef CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_
6 #define CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ 6 #define CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_sender.h"
10 #include "webkit/glue/cpp_bound_class.h" 10 #include "webkit/glue/cpp_bound_class.h"
11 11
12 /* DomAutomationController class: 12 /* DomAutomationController class:
13 Bound to Javascript window.domAutomationController object. 13 Bound to Javascript window.domAutomationController object.
14 At the very basic, this object makes any native value (string, numbers, 14 At the very basic, this object makes any native value (string, numbers,
15 boolean) from javascript available to the automation host in Cpp. 15 boolean) from javascript available to the automation host in Cpp.
16 Any renderer implementation that is built with this binding will allow the 16 Any renderer implementation that is built with this binding will allow the
17 above facility. 17 above facility.
18 The intended use of this object is to expose the DOM Objects and their 18 The intended use of this object is to expose the DOM Objects and their
19 attributes to the automation host. 19 attributes to the automation host.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 void SetAutomationId(const webkit_glue::CppArgumentList& args, 104 void SetAutomationId(const webkit_glue::CppArgumentList& args,
105 webkit_glue::CppVariant* result); 105 webkit_glue::CppVariant* result);
106 106
107 // TODO(vibhor): Implement later 107 // TODO(vibhor): Implement later
108 // static CppBindingObjectMethod sendLater; 108 // static CppBindingObjectMethod sendLater;
109 // static CppBindingObjectMethod sendNow; 109 // static CppBindingObjectMethod sendNow;
110 110
111 void set_routing_id(int routing_id) { routing_id_ = routing_id; } 111 void set_routing_id(int routing_id) { routing_id_ = routing_id; }
112 112
113 void set_message_sender(IPC::Message::Sender* sender) { 113 void set_message_sender(IPC::Sender* sender) {
114 sender_ = sender; 114 sender_ = sender;
115 } 115 }
116 116
117 private: 117 private:
118 IPC::Message::Sender* sender_; 118 IPC::Sender* sender_;
119 119
120 // Refer to the comments at the top of the file for more details. 120 // Refer to the comments at the top of the file for more details.
121 int routing_id_; // routing id to be used by first channel. 121 int routing_id_; // routing id to be used by first channel.
122 int automation_id_; // routing id to be used by the next channel. 122 int automation_id_; // routing id to be used by the next channel.
123 }; 123 };
124 124
125 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ 125 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/public/utility/utility_thread.h ('k') | content/renderer/gpu/compositor_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698