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

Side by Side Diff: chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.h

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (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_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 namespace chromeos { 21 namespace chromeos {
22 22
23 // Class to handle messages from chrome://cryptohome. 23 // Class to handle messages from chrome://cryptohome.
24 class CryptohomeWebUIHandler : public content::WebUIMessageHandler { 24 class CryptohomeWebUIHandler : public content::WebUIMessageHandler {
25 public: 25 public:
26 CryptohomeWebUIHandler(); 26 CryptohomeWebUIHandler();
27 27
28 virtual ~CryptohomeWebUIHandler(); 28 virtual ~CryptohomeWebUIHandler();
29 29
30 // WebUIMessageHandler override. 30 // WebUIMessageHandler override.
31 virtual void RegisterMessages() OVERRIDE; 31 virtual void RegisterMessages() override;
32 32
33 private: 33 private:
34 // This method is called from JavaScript. 34 // This method is called from JavaScript.
35 void OnPageLoaded(const base::ListValue* args); 35 void OnPageLoaded(const base::ListValue* args);
36 36
37 void DidGetNSSUtilInfoOnUIThread(bool is_tpm_token_ready); 37 void DidGetNSSUtilInfoOnUIThread(bool is_tpm_token_ready);
38 38
39 // Returns a callback to handle Cryptohome property values. 39 // Returns a callback to handle Cryptohome property values.
40 BoolDBusMethodCallback GetCryptohomeBoolCallback( 40 BoolDBusMethodCallback GetCryptohomeBoolCallback(
41 const std::string& destination_id); 41 const std::string& destination_id);
42 42
43 // This method is called when Cryptohome D-Bus method call completes. 43 // This method is called when Cryptohome D-Bus method call completes.
44 void OnCryptohomeBoolProperty(const std::string& destination_id, 44 void OnCryptohomeBoolProperty(const std::string& destination_id,
45 DBusMethodCallStatus call_status, 45 DBusMethodCallStatus call_status,
46 bool value); 46 bool value);
47 47
48 // Sets textcontent of the element whose id is |destination_id| to |value|. 48 // Sets textcontent of the element whose id is |destination_id| to |value|.
49 void SetCryptohomeProperty(const std::string& destination_id, 49 void SetCryptohomeProperty(const std::string& destination_id,
50 const base::Value& value); 50 const base::Value& value);
51 51
52 base::WeakPtrFactory<CryptohomeWebUIHandler> weak_ptr_factory_; 52 base::WeakPtrFactory<CryptohomeWebUIHandler> weak_ptr_factory_;
53 DISALLOW_COPY_AND_ASSIGN(CryptohomeWebUIHandler); 53 DISALLOW_COPY_AND_ASSIGN(CryptohomeWebUIHandler);
54 }; 54 };
55 55
56 } // namespace chromeos 56 } // namespace chromeos
57 57
58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_CRYPTOHOME_WEB_UI_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.cc ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698