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

Side by Side Diff: content/renderer/web_ui_extension.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
« no previous file with comments | « content/renderer/stats_collection_controller.cc ('k') | content/renderer/web_ui_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_WEB_UI_EXTENSION_H_ 5 #ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_H_
6 #define CONTENT_RENDERER_WEB_UI_EXTENSION_H_ 6 #define CONTENT_RENDERER_WEB_UI_EXTENSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebFrame; 13 class WebLocalFrame;
14 } 14 }
15 15
16 namespace gin { 16 namespace gin {
17 class Arguments; 17 class Arguments;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 class WebUIExtension { 22 class WebUIExtension {
23 public: 23 public:
24 static void Install(blink::WebFrame* frame); 24 static void Install(blink::WebLocalFrame* frame);
25 25
26 private: 26 private:
27 static void Send(gin::Arguments* args); 27 static void Send(gin::Arguments* args);
28 static std::string GetVariableValue(const std::string& name); 28 static std::string GetVariableValue(const std::string& name);
29 29
30 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtension); 30 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtension);
31 }; 31 };
32 32
33 } // namespace content 33 } // namespace content
34 34
35 #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_H_ 35 #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_H_
OLDNEW
« no previous file with comments | « content/renderer/stats_collection_controller.cc ('k') | content/renderer/web_ui_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698