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

Side by Side Diff: components/pairing/fake_host_pairing_controller.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_ 5 #ifndef COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_
6 #define COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_ 6 #define COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 16 matching lines...) Expand all
27 // empty, random code is generated. 27 // empty, random code is generated.
28 // * device_name - string. Default: "Chromebox-01". 28 // * device_name - string. Default: "Chromebox-01".
29 // * domain - string. Default: "example.com". 29 // * domain - string. Default: "example.com".
30 explicit FakeHostPairingController(const std::string& config); 30 explicit FakeHostPairingController(const std::string& config);
31 virtual ~FakeHostPairingController(); 31 virtual ~FakeHostPairingController();
32 32
33 // Applies given |config| to flow. 33 // Applies given |config| to flow.
34 void ApplyConfig(const std::string& config); 34 void ApplyConfig(const std::string& config);
35 35
36 // Overridden from HostPairingFlow: 36 // Overridden from HostPairingFlow:
37 virtual void AddObserver(Observer* observer) OVERRIDE; 37 virtual void AddObserver(Observer* observer) override;
38 virtual void RemoveObserver(Observer* observer) OVERRIDE; 38 virtual void RemoveObserver(Observer* observer) override;
39 virtual Stage GetCurrentStage() OVERRIDE; 39 virtual Stage GetCurrentStage() override;
40 virtual void StartPairing() OVERRIDE; 40 virtual void StartPairing() override;
41 virtual std::string GetDeviceName() OVERRIDE; 41 virtual std::string GetDeviceName() override;
42 virtual std::string GetConfirmationCode() OVERRIDE; 42 virtual std::string GetConfirmationCode() override;
43 virtual std::string GetEnrollmentDomain() OVERRIDE; 43 virtual std::string GetEnrollmentDomain() override;
44 virtual void OnUpdateStatusChanged(UpdateStatus update_status) OVERRIDE; 44 virtual void OnUpdateStatusChanged(UpdateStatus update_status) override;
45 virtual void SetEnrollmentComplete(bool success) OVERRIDE; 45 virtual void SetEnrollmentComplete(bool success) override;
46 46
47 private: 47 private:
48 void ChangeStage(Stage new_stage); 48 void ChangeStage(Stage new_stage);
49 void ChangeStageLater(Stage new_stage); 49 void ChangeStageLater(Stage new_stage);
50 50
51 // HostPairingFlow::Observer: 51 // HostPairingFlow::Observer:
52 virtual void PairingStageChanged(Stage new_stage) OVERRIDE; 52 virtual void PairingStageChanged(Stage new_stage) override;
53 virtual void ConfigureHost(bool accepted_eula, 53 virtual void ConfigureHost(bool accepted_eula,
54 const std::string& lang, 54 const std::string& lang,
55 const std::string& timezone, 55 const std::string& timezone,
56 bool send_reports, 56 bool send_reports,
57 const std::string& keyboard_layout) OVERRIDE; 57 const std::string& keyboard_layout) override;
58 virtual void EnrollHost(const std::string& auth_token) OVERRIDE; 58 virtual void EnrollHost(const std::string& auth_token) override;
59 59
60 ObserverList<Observer> observers_; 60 ObserverList<Observer> observers_;
61 Stage current_stage_; 61 Stage current_stage_;
62 std::string device_name_; 62 std::string device_name_;
63 std::string confirmation_code_; 63 std::string confirmation_code_;
64 base::TimeDelta async_duration_; 64 base::TimeDelta async_duration_;
65 65
66 // If this flag is true error happens on |STAGE_ENROLLING| once. 66 // If this flag is true error happens on |STAGE_ENROLLING| once.
67 bool enrollment_should_fail_; 67 bool enrollment_should_fail_;
68 68
69 // Controller starts its work like if update and reboot already happened. 69 // Controller starts its work like if update and reboot already happened.
70 bool start_after_update_; 70 bool start_after_update_;
71 71
72 std::string enrollment_domain_; 72 std::string enrollment_domain_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(FakeHostPairingController); 74 DISALLOW_COPY_AND_ASSIGN(FakeHostPairingController);
75 }; 75 };
76 76
77 } // namespace pairing_chromeos 77 } // namespace pairing_chromeos
78 78
79 #endif // COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_ 79 #endif // COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/pairing/fake_controller_pairing_controller.h ('k') | components/pairing/shark_connection_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698