blob: 8e4bfbb209f41504db2ead69b432a5a618a62002 [file] [log] [blame]
[email protected]940ed1d2012-11-27 21:03:211// 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]e6910e342014-03-03 15:51:335#ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_H_
6#define CONTENT_RENDERER_WEB_UI_EXTENSION_H_
[email protected]940ed1d2012-11-27 21:03:217
[email protected]f5c9f0882014-02-16 22:19:328#include <string>
9
avi1023d012015-12-25 02:39:1410#include "base/macros.h"
[email protected]940ed1d2012-11-27 21:03:2111
[email protected]f5c9f0882014-02-16 22:19:3212namespace blink {
13class WebFrame;
14}
15
16namespace gin {
17class Arguments;
[email protected]940ed1d2012-11-27 21:03:2118}
19
20namespace content {
21
22class WebUIExtension {
23 public:
[email protected]f5c9f0882014-02-16 22:19:3224 static void Install(blink::WebFrame* frame);
[email protected]940ed1d2012-11-27 21:03:2125
26 private:
[email protected]f5c9f0882014-02-16 22:19:3227 static void Send(gin::Arguments* args);
28 static std::string GetVariableValue(const std::string& name);
29
[email protected]940ed1d2012-11-27 21:03:2130 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtension);
31};
32
33} // namespace content
34
[email protected]e6910e342014-03-03 15:51:3335#endif // CONTENT_RENDERER_WEB_UI_EXTENSION_H_