[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | e6910e34 | 2014-03-03 15:51:33 | [diff] [blame] | 5 | #ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_H_ |
6 | #define CONTENT_RENDERER_WEB_UI_EXTENSION_H_ | ||||
[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 7 | |
[email protected] | f5c9f088 | 2014-02-16 22:19:32 | [diff] [blame] | 8 | #include <string> |
9 | |||||
avi | 1023d01 | 2015-12-25 02:39:14 | [diff] [blame] | 10 | #include "base/macros.h" |
[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 11 | |
[email protected] | f5c9f088 | 2014-02-16 22:19:32 | [diff] [blame] | 12 | namespace blink { |
13 | class WebFrame; | ||||
14 | } | ||||
15 | |||||
16 | namespace gin { | ||||
17 | class Arguments; | ||||
[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 18 | } |
19 | |||||
20 | namespace content { | ||||
21 | |||||
22 | class WebUIExtension { | ||||
23 | public: | ||||
[email protected] | f5c9f088 | 2014-02-16 22:19:32 | [diff] [blame] | 24 | static void Install(blink::WebFrame* frame); |
[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 25 | |
26 | private: | ||||
[email protected] | f5c9f088 | 2014-02-16 22:19:32 | [diff] [blame] | 27 | static void Send(gin::Arguments* args); |
28 | static std::string GetVariableValue(const std::string& name); | ||||
29 | |||||
[email protected] | 940ed1d | 2012-11-27 21:03:21 | [diff] [blame] | 30 | DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtension); |
31 | }; | ||||
32 | |||||
33 | } // namespace content | ||||
34 | |||||
[email protected] | e6910e34 | 2014-03-03 15:51:33 | [diff] [blame] | 35 | #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_H_ |