| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 9 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
| 10 | 10 |
| 11 namespace settings { | 11 class ChromeLauncherController; |
| 12 | 12 |
| 13 class NativeCertificatesHandler : public SettingsPageUIHandler { | 13 namespace ash { |
| 14 class Shelf; |
| 15 struct ShelfItem; |
| 16 } |
| 17 |
| 18 // Class for context menu which is shown when right click on desktop shell. |
| 19 class DesktopShellLauncherContextMenu : public LauncherContextMenu { |
| 14 public: | 20 public: |
| 15 NativeCertificatesHandler(); | 21 DesktopShellLauncherContextMenu(ChromeLauncherController* controller, |
| 16 ~NativeCertificatesHandler() override; | 22 const ash::ShelfItem* item, |
| 17 | 23 ash::Shelf* shelf); |
| 18 // SettingsPageUIHandler implementation. | 24 ~DesktopShellLauncherContextMenu() override; |
| 19 void RegisterMessages() override; | |
| 20 | |
| 21 // Callback for the "showManageSSLCertificates" message. This will invoke | |
| 22 // an appropriate certificate management action based on the platform. | |
| 23 void HandleShowManageSSLCertificates(const base::ListValue* args); | |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(NativeCertificatesHandler); | 27 void Init(); |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(DesktopShellLauncherContextMenu); |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace settings | 32 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_ |
| 30 | |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | |
| OLD | NEW |