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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 #include "gin/wrappable.h" | 10 #include "gin/wrappable.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool SendWithId(int automation_id, const std::string& str); | 104 bool SendWithId(int automation_id, const std::string& str); |
105 | 105 |
106 bool SetAutomationId(int automation_id); | 106 bool SetAutomationId(int automation_id); |
107 | 107 |
108 private: | 108 private: |
109 explicit DomAutomationController(RenderFrame* render_view); | 109 explicit DomAutomationController(RenderFrame* render_view); |
110 virtual ~DomAutomationController(); | 110 virtual ~DomAutomationController(); |
111 | 111 |
112 // gin::WrappableBase | 112 // gin::WrappableBase |
113 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 113 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
114 v8::Isolate* isolate) OVERRIDE; | 114 v8::Isolate* isolate) override; |
115 | 115 |
116 // RenderViewObserver | 116 // RenderViewObserver |
117 virtual void OnDestruct() OVERRIDE; | 117 virtual void OnDestruct() override; |
118 | 118 |
119 int automation_id_; // routing id to be used by the next channel. | 119 int automation_id_; // routing id to be used by the next channel. |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(DomAutomationController); | 121 DISALLOW_COPY_AND_ASSIGN(DomAutomationController); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace content | 124 } // namespace content |
125 | 125 |
126 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ | 126 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ |
OLD | NEW |