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

Side by Side Diff: chromeos/network/network_connection_handler.h

Issue 20130002: Call crypto::InitializeTPMToken on the IO thread (Take 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/cert_loader.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NETWORK_NETWORK_CONNECTION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chromeos/cert_loader.h"
15 #include "chromeos/chromeos_export.h" 16 #include "chromeos/chromeos_export.h"
16 #include "chromeos/dbus/dbus_method_call_status.h" 17 #include "chromeos/dbus/dbus_method_call_status.h"
17 #include "chromeos/login/login_state.h" 18 #include "chromeos/login/login_state.h"
18 #include "chromeos/network/cert_loader.h"
19 #include "chromeos/network/network_handler.h" 19 #include "chromeos/network/network_handler.h"
20 #include "chromeos/network/network_handler_callbacks.h" 20 #include "chromeos/network/network_handler_callbacks.h"
21 #include "chromeos/network/network_state_handler_observer.h" 21 #include "chromeos/network/network_state_handler_observer.h"
22 22
23 namespace chromeos { 23 namespace chromeos {
24 24
25 class NetworkState; 25 class NetworkState;
26 class NetworkUIData; 26 class NetworkUIData;
27 27
28 // The NetworkConnectionHandler class is used to manage network connection 28 // The NetworkConnectionHandler class is used to manage network connection
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool initial_load) OVERRIDE; 111 bool initial_load) OVERRIDE;
112 112
113 private: 113 private:
114 friend class NetworkHandler; 114 friend class NetworkHandler;
115 friend class NetworkConnectionHandlerTest; 115 friend class NetworkConnectionHandlerTest;
116 116
117 struct ConnectRequest; 117 struct ConnectRequest;
118 118
119 NetworkConnectionHandler(); 119 NetworkConnectionHandler();
120 120
121 void Init(CertLoader* cert_loader, 121 void Init(NetworkStateHandler* network_state_handler,
122 NetworkStateHandler* network_state_handler,
123 NetworkConfigurationHandler* network_configuration_handler); 122 NetworkConfigurationHandler* network_configuration_handler);
124 123
125 ConnectRequest* pending_request(const std::string& service_path); 124 ConnectRequest* pending_request(const std::string& service_path);
126 125
127 // Callback from Shill.Service.GetProperties. Parses |properties| to verify 126 // Callback from Shill.Service.GetProperties. Parses |properties| to verify
128 // whether or not the network appears to be configured. If configured, 127 // whether or not the network appears to be configured. If configured,
129 // attempts a connection, otherwise invokes error_callback from 128 // attempts a connection, otherwise invokes error_callback from
130 // pending_requests_[service_path]. 129 // pending_requests_[service_path].
131 void VerifyConfiguredAndConnect(const std::string& service_path, 130 void VerifyConfiguredAndConnect(const std::string& service_path,
132 const base::DictionaryValue& properties); 131 const base::DictionaryValue& properties);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Track certificate loading state. 174 // Track certificate loading state.
176 bool logged_in_; 175 bool logged_in_;
177 bool certificates_loaded_; 176 bool certificates_loaded_;
178 177
179 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); 178 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler);
180 }; 179 };
181 180
182 } // namespace chromeos 181 } // namespace chromeos
183 182
184 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ 183 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/cert_loader.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698