Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 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 CHROME_BROWSER_UI_WEBUI_TRANSLATE_INTERNALS_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_TRANSLATE_INTERNALS_HANDLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "content/public/browser/web_ui_message_handler.h" | |
| 11 #include "webkit/plugins/webplugininfo.h" | |
| 12 | |
| 13 namespace base { | |
| 14 class ListValue; | |
| 15 class Value; | |
| 16 } | |
| 17 | |
| 18 // Handler class for TranslateInternals page operations. | |
| 19 class TranslateInternalsHandler : public content::WebUIMessageHandler { | |
| 20 public: | |
| 21 TranslateInternalsHandler() {} | |
| 22 virtual ~TranslateInternalsHandler() {} | |
| 23 | |
| 24 // content::WebUIMessageHandler methods: | |
| 25 virtual void RegisterMessages() OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 void OnRequestInfo(const base::ListValue* args); | |
|
Evan Stade
2013/04/12 16:02:25
docs
hajimehoshi
2013/04/15 04:01:49
Done.
| |
| 29 void SendMessage(const std::string& message, const base::Value& value); | |
|
Evan Stade
2013/04/12 16:02:25
docs
hajimehoshi
2013/04/15 04:01:49
Done.
| |
| 30 DISALLOW_COPY_AND_ASSIGN(TranslateInternalsHandler); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_WEBUI_TRANSLATE_INTERNALS_HANDLER_H_ | |
| OLD | NEW |