| OLD | NEW |
| 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_ |
| OLD | NEW |