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

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

Issue 1535573002: 1) Add initialization error page; 2) Add connection error page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: We don't need to set enrollment related local state for a host device since Enrollment Screen doesn… Created 5 years 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
« no previous file with comments | « components/pairing/bluetooth_host_pairing_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HOST_PAIRING_CONTROLLER_H_ 5 #ifndef COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_
6 #define COMPONENTS_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 11
12 namespace pairing_chromeos { 12 namespace pairing_chromeos {
13 13
14 class HostPairingController { 14 class HostPairingController {
15 public: 15 public:
16 enum Stage { 16 enum Stage {
17 STAGE_NONE, 17 STAGE_NONE,
18 STAGE_INITIALIZATION_ERROR, 18 STAGE_INITIALIZATION_ERROR,
19 STAGE_WAITING_FOR_CONTROLLER, 19 STAGE_WAITING_FOR_CONTROLLER,
20 STAGE_WAITING_FOR_CODE_CONFIRMATION, 20 STAGE_WAITING_FOR_CODE_CONFIRMATION,
21 STAGE_CONTROLLER_CONNECTION_ERROR,
21 STAGE_SETUP_BASIC_CONFIGURATION, 22 STAGE_SETUP_BASIC_CONFIGURATION,
22 STAGE_SETUP_NETWORK_ERROR, 23 STAGE_SETUP_NETWORK_ERROR,
23 STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE, 24 STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE,
24 STAGE_WAITING_FOR_CREDENTIALS, 25 STAGE_WAITING_FOR_CREDENTIALS,
25 STAGE_ENROLLING, 26 STAGE_ENROLLING,
26 STAGE_ENROLLMENT_ERROR, 27 STAGE_ENROLLMENT_ERROR,
27 STAGE_ENROLLMENT_SUCCESS, 28 STAGE_ENROLLMENT_SUCCESS,
28 STAGE_FINISHED 29 STAGE_FINISHED
29 }; 30 };
30 31
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void AddObserver(Observer* observer) = 0; 114 virtual void AddObserver(Observer* observer) = 0;
114 virtual void RemoveObserver(Observer* observer) = 0; 115 virtual void RemoveObserver(Observer* observer) = 0;
115 116
116 private: 117 private:
117 DISALLOW_COPY_AND_ASSIGN(HostPairingController); 118 DISALLOW_COPY_AND_ASSIGN(HostPairingController);
118 }; 119 };
119 120
120 } // namespace pairing_chromeos 121 } // namespace pairing_chromeos
121 122
122 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ 123 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/pairing/bluetooth_host_pairing_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698