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

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

Issue 854063002: Update {virtual,override,final} to follow C++11 style chrome/browser/ui/webui/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chromeos/dbus/dbus_method_call_status.h" 12 #include "chromeos/dbus/dbus_method_call_status.h"
13 #include "content/public/browser/web_ui_message_handler.h" 13 #include "content/public/browser/web_ui_message_handler.h"
14 14
15 namespace base { 15 namespace base {
16 16
17 class Value; 17 class Value;
18 18
19 } // base 19 } // base
20 20
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 ~CryptohomeWebUIHandler() override;
29 29
30 // WebUIMessageHandler override. 30 // WebUIMessageHandler override.
31 virtual void RegisterMessages() override; 31 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/cryptohome_ui.h ('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