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

Side by Side Diff: chrome/browser/ui/webui/extensions/install_extension_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "content/public/browser/web_ui_message_handler.h" 11 #include "content/public/browser/web_ui_message_handler.h"
12 12
13 namespace content { 13 namespace content {
14 class WebUIDataSource; 14 class WebUIDataSource;
15 } 15 }
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 // Handles installing an extension when its file is dragged onto the page. 19 // Handles installing an extension when its file is dragged onto the page.
20 class InstallExtensionHandler : public content::WebUIMessageHandler { 20 class InstallExtensionHandler : public content::WebUIMessageHandler {
21 public: 21 public:
22 InstallExtensionHandler(); 22 InstallExtensionHandler();
23 virtual ~InstallExtensionHandler(); 23 ~InstallExtensionHandler() override;
24 24
25 void GetLocalizedValues(content::WebUIDataSource* source); 25 void GetLocalizedValues(content::WebUIDataSource* source);
26 26
27 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() override; 28 void RegisterMessages() override;
29 29
30 private: 30 private:
31 // Handles a notification from the JavaScript that a drag has started. This is 31 // Handles a notification from the JavaScript that a drag has started. This is
32 // needed so that we can capture the file being dragged. If we wait until 32 // needed so that we can capture the file being dragged. If we wait until
33 // we receive a drop notification, the drop data in the browser process will 33 // we receive a drop notification, the drop data in the browser process will
34 // have already been destroyed. 34 // have already been destroyed.
35 void HandleStartDragMessage(const base::ListValue* args); 35 void HandleStartDragMessage(const base::ListValue* args);
36 36
37 // Handles a notification from the JavaScript that a drag has stopped. 37 // Handles a notification from the JavaScript that a drag has stopped.
38 void HandleStopDragMessage(const base::ListValue* args); 38 void HandleStopDragMessage(const base::ListValue* args);
(...skipping 14 matching lines...) Expand all
53 // called. 53 // called.
54 base::FilePath file_to_install_; 54 base::FilePath file_to_install_;
55 base::string16 file_display_name_; 55 base::string16 file_display_name_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(InstallExtensionHandler); 57 DISALLOW_COPY_AND_ASSIGN(InstallExtensionHandler);
58 }; 58 };
59 59
60 } // namespace extensions 60 } // namespace extensions
61 61
62 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ 62 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698