OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | 10 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Attempts to connect to the network specified by |service_path|. | 30 // Attempts to connect to the network specified by |service_path|. |
31 // Returns one of the following results: | 31 // Returns one of the following results: |
32 // NETWORK_NOT_FOUND if the network does not exist. | 32 // NETWORK_NOT_FOUND if the network does not exist. |
33 // CONNECT_NOT_STARTED if no connection attempt was started, e.g. because the | 33 // CONNECT_NOT_STARTED if no connection attempt was started, e.g. because the |
34 // network is already connected, connecting, or activating. | 34 // network is already connected, connecting, or activating. |
35 // CONNECT_STARTED if a connection attempt was started. | 35 // CONNECT_STARTED if a connection attempt was started. |
36 ConnectResult ConnectToNetwork(const std::string& service_path, | 36 ConnectResult ConnectToNetwork(const std::string& service_path, |
37 gfx::NativeWindow parent_window); | 37 gfx::NativeWindow parent_window); |
38 | 38 |
| 39 // Handle an unconfigured network which might do any of the following: |
| 40 // * Configure and connect to the network with a matching cert but without |
| 41 // pcks11id and tpm pin / slot configured. |
| 42 // * Show the enrollment dialog for the network. |
| 43 // * Show the configuration dialog for the network. |
| 44 // * Show the activation dialog for the network. |
| 45 // * Show the settings UI for the network. |
| 46 void HandleUnconfiguredNetwork(const std::string& service_path, |
| 47 gfx::NativeWindow parent_window); |
| 48 |
39 } // namespace network_connect | 49 } // namespace network_connect |
40 } // namespace chromeos | 50 } // namespace chromeos |
41 | 51 |
42 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONNECT_H_ |
OLD | NEW |