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

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

Issue 2923053002: Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... Created 3 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
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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 stored automation_id_ as an IPC message. The frame_'s RenderFrameImpl is 67 stored automation_id_ as an IPC message. The frame_'s RenderFrameImpl is
68 used to route the message. (IPC messages, ViewHostMsg_*DomAutomation* ) 68 used to route the message. (IPC messages, ViewHostMsg_*DomAutomation* )
69 (6) The value and the automation_id_ is extracted out of the message received 69 (6) The value and the automation_id_ is extracted out of the message received
70 in (5). This value is relayed to AProxy using another IPC message. 70 in (5). This value is relayed to AProxy using another IPC message.
71 automation_id_ is used to route the message. 71 automation_id_ is used to route the message.
72 (IPC messages, AutomationMsg_Dom*Response) 72 (IPC messages, AutomationMsg_Dom*Response)
73 73
74 */ 74 */
75 75
76 namespace blink { 76 namespace blink {
77 class WebFrame; 77 class WebLocalFrame;
78 } 78 }
79 79
80 namespace gin { 80 namespace gin {
81 class Arguments; 81 class Arguments;
82 } 82 }
83 83
84 namespace content { 84 namespace content {
85 85
86 class RenderFrame; 86 class RenderFrame;
87 87
88 class DomAutomationController : public gin::Wrappable<DomAutomationController>, 88 class DomAutomationController : public gin::Wrappable<DomAutomationController>,
89 public RenderFrameObserver { 89 public RenderFrameObserver {
90 public: 90 public:
91 static gin::WrapperInfo kWrapperInfo; 91 static gin::WrapperInfo kWrapperInfo;
92 92
93 static void Install(RenderFrame* render_frame, blink::WebFrame* frame); 93 static void Install(RenderFrame* render_frame, blink::WebLocalFrame* frame);
94 94
95 // Makes the renderer send a javascript value to the app. 95 // Makes the renderer send a javascript value to the app.
96 // The value to be sent can be either of type String, 96 // The value to be sent can be either of type String,
97 // Number (double casted to int32_t) or Boolean. Any other type or no 97 // Number (double casted to int32_t) or Boolean. Any other type or no
98 // argument at all is ignored. 98 // argument at all is ignored.
99 bool SendMsg(const gin::Arguments& args); 99 bool SendMsg(const gin::Arguments& args);
100 100
101 // Makes the renderer send a javascript value to the app. 101 // Makes the renderer send a javascript value to the app.
102 // The value should be properly formed JSON. 102 // The value should be properly formed JSON.
103 bool SendJSON(const std::string& json); 103 bool SendJSON(const std::string& json);
(...skipping 17 matching lines...) Expand all
121 int world_id) override; 121 int world_id) override;
122 122
123 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.
124 124
125 DISALLOW_COPY_AND_ASSIGN(DomAutomationController); 125 DISALLOW_COPY_AND_ASSIGN(DomAutomationController);
126 }; 126 };
127 127
128 } // namespace content 128 } // namespace content
129 129
130 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_ 130 #endif // CONTENT_RENDERER_DOM_AUTOMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/guest_view/renderer/guest_view_request.cc ('k') | content/renderer/dom_automation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698