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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 118 // Retrieves a histogram and returns a JSON representation of it. |
119 void GetHistogram(const webkit_glue::CppArgumentList& args, | 119 void GetHistogram(const webkit_glue::CppArgumentList& args, |
120 webkit_glue::CppVariant* result); | 120 webkit_glue::CppVariant* result); |
121 | 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 |
122 private: | 127 private: |
123 IPC::Sender* sender_; | 128 IPC::Sender* sender_; |
124 | 129 |
125 // Refer to the comments at the top of the file for more details. | 130 // Refer to the comments at the top of the file for more details. |
126 int routing_id_; // routing id to be used by first channel. | 131 int routing_id_; // routing id to be used by first channel. |
127 int automation_id_; // routing id to be used by the next channel. | 132 int automation_id_; // routing id to be used by the next channel. |
128 }; | 133 }; |
129 | 134 |
130 } // namespace content | 135 } // namespace content |
131 | 136 |
132 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ | 137 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ |
OLD | NEW |