summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options2/handler_options_handler.h
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:17:49 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:17:49 +0000
commit3d750ef7aaedd4a6cede734e3251005f2e02dcc0 (patch)
tree0c0dbe4db6ff6cc66bd9b9f04c34ec933f6ea577 /chrome/browser/ui/webui/options2/handler_options_handler.h
parent81a33d9d44aa5eedb06670952165c55533a0ed5a (diff)
downloadchromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.zip
chromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.tar.gz
chromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.tar.bz2
Moved all options2 files to the options2 namespace.
BUG=100885 TEST=everything compiles Review URL: http://codereview.chromium.org/8947010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options2/handler_options_handler.h')
-rw-r--r--chrome/browser/ui/webui/options2/handler_options_handler.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/chrome/browser/ui/webui/options2/handler_options_handler.h b/chrome/browser/ui/webui/options2/handler_options_handler.h
deleted file mode 100644
index 4699f82..0000000
--- a/chrome/browser/ui/webui/options2/handler_options_handler.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_
-
-#include <string>
-
-#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
-#include "chrome/browser/ui/webui/options2/options_ui2.h"
-#include "chrome/common/custom_handlers/protocol_handler.h"
-#include "content/public/browser/notification_registrar.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-class HandlerOptionsHandler : public OptionsPage2UIHandler {
- public:
- HandlerOptionsHandler();
- virtual ~HandlerOptionsHandler();
-
- // OptionsPage2UIHandler implementation.
- virtual void GetLocalizedValues(
- base::DictionaryValue* localized_strings) OVERRIDE;
- virtual void Initialize() OVERRIDE;
- virtual void RegisterMessages() OVERRIDE;
-
- // content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- // Called when the user toggles whether custom handlers are enabled.
- void SetHandlersEnabled(const ListValue* args);
-
- // Called when the user sets a new default handler for a protocol.
- void SetDefault(const 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);
-
- // 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;
-
- // Returns a JSON object describing the set of protocol handlers for the
- // given protocol.
- void GetHandlersForProtocol(const std::string& protocol,
- base::DictionaryValue* value);
-
- // Returns a JSON list of the ignored protocol handlers.
- void GetIgnoredHandlers(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);
-
- // Remove an ignored handler.
- // |args| is a list of [protocol, url, title].
- void RemoveIgnoredHandler(const ListValue* args);
-
- ProtocolHandlerRegistry* GetProtocolHandlerRegistry();
-
- content::NotificationRegistrar notification_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_