| Index: chrome/browser/ui/webui/settings/passwords_handler.h
|
| diff --git a/chrome/browser/ui/webui/settings/passwords_handler.h b/chrome/browser/ui/webui/settings/passwords_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..335cd3697a5c728535807e2e975bfa6bc47a8bac
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/settings/passwords_handler.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2015 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_SETTINGS_PASSWORDS_HANDLER_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/webui/settings/md_settings_ui.h"
|
| +
|
| +namespace content {
|
| +class WebUI;
|
| +}
|
| +
|
| +class Profile;
|
| +
|
| +namespace settings {
|
| +
|
| +class PasswordsHandler : public SettingsPageUIHandler {
|
| + public:
|
| + explicit PasswordsHandler(content::WebUI* webui);
|
| + ~PasswordsHandler() override;
|
| +
|
| + // SettingsPageUIHandler:
|
| + void RegisterMessages() override;
|
| +
|
| + private:
|
| + // Sets whether chrome should offer to save passwords or not.
|
| + void HandleSetPaswordSaving(const base::ListValue* args);
|
| +
|
| + Profile* profile_; // Weak pointer.
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PasswordsHandler);
|
| +};
|
| +
|
| +} // namespace settings
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_
|
|
|