OLD | NEW |
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 CHROMEOS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
6 #define CHROMEOS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chromeos/chromeos_export.h" | |
12 | 11 |
13 namespace chromeos { | 12 namespace pairing_chromeos { |
14 | 13 |
15 class CHROMEOS_EXPORT HostPairingController { | 14 class HostPairingController { |
16 public: | 15 public: |
17 enum Stage { | 16 enum Stage { |
18 STAGE_NONE, | 17 STAGE_NONE, |
19 STAGE_WAITING_FOR_CONTROLLER, | 18 STAGE_WAITING_FOR_CONTROLLER, |
20 STAGE_WAITING_FOR_CODE_CONFIRMATION, | 19 STAGE_WAITING_FOR_CODE_CONFIRMATION, |
21 STAGE_UPDATING, | 20 STAGE_UPDATING, |
22 STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE, | 21 STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE, |
23 STAGE_WAITING_FOR_CREDENTIALS, | 22 STAGE_WAITING_FOR_CREDENTIALS, |
24 STAGE_ENROLLING, | 23 STAGE_ENROLLING, |
25 STAGE_ENROLLMENT_ERROR, | 24 STAGE_ENROLLMENT_ERROR, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual std::string GetConfirmationCode() = 0; | 67 virtual std::string GetConfirmationCode() = 0; |
69 | 68 |
70 // Returns an enrollment domain name. Can be called on stage | 69 // Returns an enrollment domain name. Can be called on stage |
71 // |STAGE_ENROLLMENT| and later. | 70 // |STAGE_ENROLLMENT| and later. |
72 virtual std::string GetEnrollmentDomain() = 0; | 71 virtual std::string GetEnrollmentDomain() = 0; |
73 | 72 |
74 private: | 73 private: |
75 DISALLOW_COPY_AND_ASSIGN(HostPairingController); | 74 DISALLOW_COPY_AND_ASSIGN(HostPairingController); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace chromeos | 77 } // namespace pairing_chromeos |
79 | 78 |
80 #endif // CHROMEOS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 79 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
OLD | NEW |