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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 std::string GetDeviceName() override; 45 std::string GetDeviceName() override;
46 std::string GetConfirmationCode() override; 46 std::string GetConfirmationCode() override;
47 std::string GetEnrollmentDomain() override; 47 std::string GetEnrollmentDomain() override;
48 void OnUpdateStatusChanged(UpdateStatus update_status) override; 48 void OnUpdateStatusChanged(UpdateStatus update_status) override;
49 void OnEnrollmentStatusChanged(EnrollmentStatus enrollment_status) override; 49 void OnEnrollmentStatusChanged(EnrollmentStatus enrollment_status) override;
50 void SetPermanentId(const std::string& permanent_id) override; 50 void SetPermanentId(const std::string& permanent_id) override;
51 51
52 // HostPairingController::Observer: 52 // HostPairingController::Observer:
53 void PairingStageChanged(Stage new_stage) override; 53 void PairingStageChanged(Stage new_stage) override;
54 54
55 ObserverList<Observer> observers_; 55 base::ObserverList<Observer> observers_;
56 Stage current_stage_; 56 Stage current_stage_;
57 std::string device_name_; 57 std::string device_name_;
58 std::string confirmation_code_; 58 std::string confirmation_code_;
59 base::TimeDelta async_duration_; 59 base::TimeDelta async_duration_;
60 60
61 // If this flag is true error happens on |STAGE_ENROLLING| once. 61 // If this flag is true error happens on |STAGE_ENROLLING| once.
62 bool enrollment_should_fail_; 62 bool enrollment_should_fail_;
63 63
64 // Controller starts its work like if update and reboot already happened. 64 // Controller starts its work like if update and reboot already happened.
65 bool start_after_update_; 65 bool start_after_update_;
66 66
67 std::string enrollment_domain_; 67 std::string enrollment_domain_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(FakeHostPairingController); 69 DISALLOW_COPY_AND_ASSIGN(FakeHostPairingController);
70 }; 70 };
71 71
72 } // namespace pairing_chromeos 72 } // namespace pairing_chromeos
73 73
74 #endif // COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_ 74 #endif // COMPONENTS_PAIRING_FAKE_HOST_PAIRING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698