Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / options / handler_options_handler.h
index 69cdc82..7c6f12e 100644 (file)
@@ -10,6 +10,7 @@
 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
 #include "chrome/browser/ui/webui/options/options_ui.h"
 #include "chrome/common/custom_handlers/protocol_handler.h"
+#include "content/public/browser/notification_observer.h"
 #include "content/public/browser/notification_registrar.h"
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -25,7 +26,8 @@ class DictionaryValue;
 
 namespace options {
 
-class HandlerOptionsHandler : public OptionsPageUIHandler {
+class HandlerOptionsHandler : public OptionsPageUIHandler,
+                              public content::NotificationObserver {
  public:
   HandlerOptionsHandler();
   virtual ~HandlerOptionsHandler();
@@ -44,18 +46,18 @@ class HandlerOptionsHandler : public OptionsPageUIHandler {
 
  private:
   // Called when the user toggles whether custom handlers are enabled.
-  void SetHandlersEnabled(const ListValue* args);
+  void SetHandlersEnabled(const base::ListValue* args);
 
   // Called when the user sets a new default handler for a protocol.
-  void SetDefault(const ListValue* args);
+  void SetDefault(const base::ListValue* args);
 
   // Called when the user clears the default handler for a protocol.
   // |args| is the string name of the protocol to clear.
-  void ClearDefault(const ListValue* args);
+  void ClearDefault(const base::ListValue* args);
 
   // Parses a ProtocolHandler out of the arguments passed back from the view.
   // |args| is a list of [protocol, url, title].
-  ProtocolHandler ParseHandlerFromArgs(const ListValue* args) const;
+  ProtocolHandler ParseHandlerFromArgs(const base::ListValue* args) const;
 
   // Returns a JSON object describing the set of protocol handlers for the
   // given protocol.
@@ -63,18 +65,18 @@ class HandlerOptionsHandler : public OptionsPageUIHandler {
                               base::DictionaryValue* value);
 
   // Returns a JSON list of the ignored protocol handlers.
-  void GetIgnoredHandlers(ListValue* handlers);
+  void GetIgnoredHandlers(base::ListValue* handlers);
 
   // Called when the JS PasswordManager object is initialized.
   void UpdateHandlerList();
 
   // Remove a handler.
   // |args| is a list of [protocol, url, title].
-  void RemoveHandler(const ListValue* args);
+  void RemoveHandler(const base::ListValue* args);
 
   // Remove an ignored handler.
   // |args| is a list of [protocol, url, title].
-  void RemoveIgnoredHandler(const ListValue* args);
+  void RemoveIgnoredHandler(const base::ListValue* args);
 
   ProtocolHandlerRegistry* GetProtocolHandlerRegistry();