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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 private: | 108 private: |
109 explicit DomAutomationController(RenderFrame* render_view); | 109 explicit DomAutomationController(RenderFrame* render_view); |
110 ~DomAutomationController() override; | 110 ~DomAutomationController() override; |
111 | 111 |
112 // gin::WrappableBase | 112 // gin::WrappableBase |
113 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 113 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
114 v8::Isolate* isolate) override; | 114 v8::Isolate* isolate) override; |
115 | 115 |
116 // RenderViewObserver | 116 // RenderViewObserver |
117 void OnDestruct() override; | 117 void OnDestruct() override; |
| 118 void DidCreateScriptContext(v8::Local<v8::Context> context, |
| 119 int extension_group, |
| 120 int world_id) override; |
118 | 121 |
119 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. |
120 | 123 |
121 DISALLOW_COPY_AND_ASSIGN(DomAutomationController); | 124 DISALLOW_COPY_AND_ASSIGN(DomAutomationController); |
122 }; | 125 }; |
123 | 126 |
124 } // namespace content | 127 } // namespace content |
125 | 128 |
126 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ | 129 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ |
OLD | NEW |