OLD | NEW |
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 | 7 |
8 #include "ipc/ipc_sender.h" | 8 #include "ipc/ipc_sender.h" |
9 #include "webkit/glue/cpp_bound_class.h" | 9 #include "webkit/glue/cpp_bound_class.h" |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // TODO(vibhor): Implement later | 108 // TODO(vibhor): Implement later |
109 // static CppBindingObjectMethod sendLater; | 109 // static CppBindingObjectMethod sendLater; |
110 // static CppBindingObjectMethod sendNow; | 110 // static CppBindingObjectMethod sendNow; |
111 | 111 |
112 void set_routing_id(int routing_id) { routing_id_ = routing_id; } | 112 void set_routing_id(int routing_id) { routing_id_ = routing_id; } |
113 | 113 |
114 void set_message_sender(IPC::Sender* sender) { | 114 void set_message_sender(IPC::Sender* sender) { |
115 sender_ = sender; | 115 sender_ = sender; |
116 } | 116 } |
117 | 117 |
118 // Retrieves a histogram and returns a JSON representation of it. | |
119 void GetHistogram(const webkit_glue::CppArgumentList& args, | |
120 webkit_glue::CppVariant* result); | |
121 | |
122 // Retrieves a histogram from the browser process and returns a JSON | |
123 // representation of it. | |
124 void GetBrowserHistogram(const webkit_glue::CppArgumentList& args, | |
125 webkit_glue::CppVariant* result); | |
126 | |
127 private: | 118 private: |
128 IPC::Sender* sender_; | 119 IPC::Sender* sender_; |
129 | 120 |
130 // Refer to the comments at the top of the file for more details. | 121 // Refer to the comments at the top of the file for more details. |
131 int routing_id_; // routing id to be used by first channel. | 122 int routing_id_; // routing id to be used by first channel. |
132 int automation_id_; // routing id to be used by the next channel. | 123 int automation_id_; // routing id to be used by the next channel. |
133 }; | 124 }; |
134 | 125 |
135 } // namespace content | 126 } // namespace content |
136 | 127 |
137 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ | 128 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ |
OLD | NEW |