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 5 #ifndef CONTENT_RENDERER_WEB_UI_EXTENSION_H_ 6 #define CONTENT_RENDERER_WEB_UI_EXTENSION_H_ 7 8 #include <string> 9 10 #include "base/basictypes.h" 11 12 namespace blink { 13 class WebFrame; 14 } 15 16 namespace gin { 17 class Arguments; 18 } 19 20 namespace content { 21 22 class WebUIExtension { 23 public: 24 static void Install(blink::WebFrame* frame); 25 26 private: 27 static void Send(gin::Arguments* args); 28 static std::string GetVariableValue(const std::string& name); 29 30 DISALLOW_IMPLICIT_CONSTRUCTORS(WebUIExtension); 31 }; 32 33 } // namespace content 34 35 #endif // CONTENT_RENDERER_WEB_UI_EXTENSION_H_ 36