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

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

Issue 656503005: Replace STAGE_PAIRING_DONE with STAGE_HOST_ENROLLMENT_SUCCESS. (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_CONTROLLER_PAIRING_CONTROLLER_H_ 5 #ifndef COMPONENTS_PAIRING_CONTROLLER_PAIRING_CONTROLLER_H_
6 #define COMPONENTS_PAIRING_CONTROLLER_PAIRING_CONTROLLER_H_ 6 #define COMPONENTS_PAIRING_CONTROLLER_PAIRING_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 STAGE_DEVICES_DISCOVERY, 28 STAGE_DEVICES_DISCOVERY,
29 STAGE_DEVICE_NOT_FOUND, 29 STAGE_DEVICE_NOT_FOUND,
30 STAGE_ESTABLISHING_CONNECTION, 30 STAGE_ESTABLISHING_CONNECTION,
31 STAGE_ESTABLISHING_CONNECTION_ERROR, 31 STAGE_ESTABLISHING_CONNECTION_ERROR,
32 STAGE_WAITING_FOR_CODE_CONFIRMATION, 32 STAGE_WAITING_FOR_CODE_CONFIRMATION,
33 STAGE_HOST_UPDATE_IN_PROGRESS, 33 STAGE_HOST_UPDATE_IN_PROGRESS,
34 STAGE_HOST_CONNECTION_LOST, 34 STAGE_HOST_CONNECTION_LOST,
35 STAGE_WAITING_FOR_CREDENTIALS, 35 STAGE_WAITING_FOR_CREDENTIALS,
36 STAGE_HOST_ENROLLMENT_IN_PROGRESS, 36 STAGE_HOST_ENROLLMENT_IN_PROGRESS,
37 STAGE_HOST_ENROLLMENT_ERROR, 37 STAGE_HOST_ENROLLMENT_ERROR,
38 STAGE_PAIRING_DONE, 38 STAGE_HOST_ENROLLMENT_SUCCESS,
39 STAGE_FINISHED 39 STAGE_FINISHED
40 }; 40 };
41 41
42 class Observer { 42 class Observer {
43 public: 43 public:
44 Observer(); 44 Observer();
45 virtual ~Observer(); 45 virtual ~Observer();
46 46
47 // Called when pairing has moved on from one stage to another. 47 // Called when pairing has moved on from one stage to another.
48 virtual void PairingStageChanged(Stage new_stage) = 0; 48 virtual void PairingStageChanged(Stage new_stage) = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool send_reports, 94 bool send_reports,
95 const std::string& keyboard_layout) = 0; 95 const std::string& keyboard_layout) = 0;
96 96
97 // Called when user successfully authenticated on GAIA page. Can be called 97 // Called when user successfully authenticated on GAIA page. Can be called
98 // only on |STAGE_WAITING_FOR_CREDENTIALS| stage. 98 // only on |STAGE_WAITING_FOR_CREDENTIALS| stage.
99 // |auth_token| will be sent to the host to be used for enrollment. 99 // |auth_token| will be sent to the host to be used for enrollment.
100 virtual void OnAuthenticationDone(const std::string& domain, 100 virtual void OnAuthenticationDone(const std::string& domain,
101 const std::string& auth_token) = 0; 101 const std::string& auth_token) = 0;
102 102
103 // Installs app and starts session. 103 // Installs app and starts session.
104 // Can be called only on |STAGE_PAIRING_DONE| stage. 104 // Can be called only on |STAGE_HOST_ENROLLMENT_SUCCESS| stage.
105 virtual void StartSession() = 0; 105 virtual void StartSession() = 0;
106 106
107 virtual void AddObserver(Observer* observer) = 0; 107 virtual void AddObserver(Observer* observer) = 0;
108 virtual void RemoveObserver(Observer* observer) = 0; 108 virtual void RemoveObserver(Observer* observer) = 0;
109 109
110 private: 110 private:
111 DISALLOW_COPY_AND_ASSIGN(ControllerPairingController); 111 DISALLOW_COPY_AND_ASSIGN(ControllerPairingController);
112 }; 112 };
113 113
114 } // namespace pairing_chromeos 114 } // namespace pairing_chromeos
115 115
116 #endif // COMPONENTS_PAIRING_CONTROLLER_PAIRING_CONTROLLER_H_ 116 #endif // COMPONENTS_PAIRING_CONTROLLER_PAIRING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/pairing/bluetooth_host_pairing_controller.cc ('k') | components/pairing/fake_controller_pairing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698