Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: ios/public/provider/web/web_ui_ios_message_handler.h

Issue 2116673002: [ios] Moved WebUI provider code to ios/web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/public/provider/web/web_ui_ios_message_handler.h
diff --git a/ios/public/provider/web/web_ui_ios_message_handler.h b/ios/public/provider/web/web_ui_ios_message_handler.h
index f9822bd7f6db5498062f5d91536e7e88b08904c5..55a4b3f40cf8b1f9bde29a5995a3baf3213dc98f 100644
--- a/ios/public/provider/web/web_ui_ios_message_handler.h
+++ b/ios/public/provider/web/web_ui_ios_message_handler.h
@@ -5,59 +5,8 @@
#ifndef IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_MESSAGE_HANDLER_H_
#define IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_MESSAGE_HANDLER_H_
-#include "base/strings/string16.h"
-
-class GURL;
-
-namespace base {
-class DictionaryValue;
-class ListValue;
-}
-
-namespace web {
-
-class WebUIIOS;
-class WebUIIOSImpl;
-
-// Messages sent from the DOM are forwarded via the WebUIIOS to handler
-// classes. These objects are owned by WebUIIOS and destroyed when the
-// host is destroyed.
-class WebUIIOSMessageHandler {
- public:
- WebUIIOSMessageHandler() : web_ui_(NULL) {}
- virtual ~WebUIIOSMessageHandler() {}
-
- protected:
- // Helper methods:
-
- // Extract an integer value from a list Value.
- static bool ExtractIntegerValue(const base::ListValue* value, int* out_int);
-
- // Extract a floating point (double) value from a list Value.
- static bool ExtractDoubleValue(const base::ListValue* value,
- double* out_value);
-
- // Extract a string value from a list Value.
- static base::string16 ExtractStringValue(const base::ListValue* value);
-
- // This is where subclasses specify which messages they'd like to handle and
- // perform any additional initialization. At this point web_ui() will return
- // the associated WebUIIOS object.
- virtual void RegisterMessages() = 0;
-
- // Returns the attached WebUIIOS for this handler.
- WebUIIOS* web_ui() const { return web_ui_; }
-
- // Sets the attached WebUIIOS - exposed to subclasses for testing purposes.
- void set_web_ui(WebUIIOS* web_ui) { web_ui_ = web_ui; }
-
- private:
- // Provide external classes access to web_ui() and set_web_ui().
- friend class WebUIIOSImpl;
-
- WebUIIOS* web_ui_;
-};
-
-} // namespace web
+// TODO(crbug.com/524467): Remove this file once downstream code is switched to
+// use correct header.
+#include "ios/web/public/webui/web_ui_ios_message_handler.h"
#endif // IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_MESSAGE_HANDLER_H_
« no previous file with comments | « ios/public/provider/web/web_ui_ios_controller_factory.h ('k') | ios/public/provider/web/web_ui_ios_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698