Home | History | Annotate | Download | only in network

Lines Matching refs:service_path

35 void InvokeErrorCallback(const std::string& service_path,
38 NET_LOG_ERROR("Connect Error: " + error_name, service_path);
40 error_callback, service_path, error_name, "");
51 bool VPNRequiresCredentials(const std::string& service_path,
59 NET_LOG_EVENT("OpenVPN: No username", service_path);
66 NET_LOG_EVENT("OpenVPN: Passphrase Required", service_path);
69 NET_LOG_EVENT("OpenVPN Is Configured", service_path);
75 NET_LOG_EVENT("VPN: PSK Required", service_path);
81 NET_LOG_EVENT("VPN: Passphrase Required", service_path);
84 NET_LOG_EVENT("VPN Is Configured", service_path);
128 ConnectRequest(const std::string& service_path,
132 : service_path(service_path),
143 std::string service_path;
241 const std::string& service_path,
245 NET_LOG_USER("ConnectToNetwork", service_path);
248 if (HasConnectingNetwork(service_path)) {
249 NET_LOG_USER("Connect Request While Pending", service_path);
250 InvokeErrorCallback(service_path, error_callback, kErrorConnecting);
259 network_state_handler_->GetNetworkState(service_path);
264 InvokeErrorCallback(service_path, error_callback, kErrorConnected);
268 InvokeErrorCallback(service_path, error_callback, kErrorConnecting);
275 InvokeErrorCallback(service_path, error_callback, error);
280 service_path, error_callback, kErrorAuthenticationRequired);
293 // All synchronous checks passed, add |service_path| to connecting list.
295 service_path,
296 ConnectRequest(service_path, profile_path,
302 CallShillConnect(service_path);
310 service_path,
314 AsWeakPtr(), service_path));
318 const std::string& service_path,
321 NET_LOG_USER("DisconnectNetwork", service_path);
323 network_state_handler_->GetNetworkState(service_path);
325 InvokeErrorCallback(service_path, error_callback, kErrorNotFound);
329 InvokeErrorCallback(service_path, error_callback, kErrorNotConnected);
332 CallShillDisconnect(service_path, success_callback, error_callback);
336 const std::string& service_path) {
337 return pending_requests_.count(service_path) != 0;
355 NetworkConnectionHandler::GetPendingRequest(const std::string& service_path) {
357 pending_requests_.find(service_path);
365 const std::string& service_path,
367 NET_LOG_EVENT("VerifyConfiguredAndConnect", service_path);
375 ErrorCallbackForPendingRequest(service_path, kErrorPassphraseRequired);
391 CallShillConnect(service_path);
412 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired);
461 ErrorCallbackForPendingRequest(service_path, kErrorCertificateRequired);
467 QueueConnectRequest(service_path);
478 ErrorCallbackForPendingRequest(service_path, kErrorCertificateRequired);
485 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired);
495 service_path, vpn_provider_type, *provider_properties)) {
496 NET_LOG_USER("VPN Requires Credentials", service_path);
497 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired);
504 CallShillConnect(service_path);
510 NET_LOG_EVENT("Configuring Network", service_path);
512 service_path,
516 service_path),
519 service_path));
528 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired);
530 CallShillConnect(service_path);
534 const std::string& service_path) {
535 ConnectRequest* request = GetPendingRequest(service_path);
537 NET_LOG_ERROR("No pending request to queue", service_path);
544 NET_LOG_ERROR("Certificate load timeout", service_path);
545 InvokeErrorCallback(service_path,
551 NET_LOG_EVENT("Connect Request Queued", service_path);
553 service_path, request->profile_path,
555 pending_requests_.erase(service_path);
575 NET_LOG_ERROR("Certificate load timeout", queued_connect_->service_path);
576 InvokeErrorCallback(queued_connect_->service_path,
587 std::string service_path = queued_connect_->service_path;
592 NET_LOG_EVENT("Connecting to Queued Network", service_path);
593 ConnectToNetwork(service_path, success_callback, error_callback,
598 const std::string& service_path) {
599 NET_LOG_EVENT("Sending Connect Request to Shill", service_path);
600 network_state_handler_->ClearLastErrorForNetwork(service_path);
602 dbus::ObjectPath(service_path),
604 AsWeakPtr(), service_path),
606 AsWeakPtr(), service_path));
610 const std::string& service_path,
613 ConnectRequest* request = GetPendingRequest(service_path);
616 service_path);
620 pending_requests_.erase(service_path);
626 const std::string& service_path) {
627 ConnectRequest* request = GetPendingRequest(service_path);
630 service_path);
634 NET_LOG_EVENT("Connect Request Acknowledged", service_path);
639 CheckPendingRequest(service_path);
643 const std::string& service_path,
646 ConnectRequest* request = GetPendingRequest(service_path);
649 service_path);
653 pending_requests_.erase(service_path);
655 shill::kErrorConnectFailed, service_path, error_callback,
660 const std::string service_path) {
661 ConnectRequest* request = GetPendingRequest(service_path);
666 network_state_handler_->GetNetworkState(service_path);
675 NET_LOG_EVENT("Connect Request Succeeded", service_path);
679 service_path,
686 pending_requests_.erase(service_path);
705 service_path);
710 pending_requests_.erase(service_path);
712 NET_LOG_ERROR("Connect Error, no callback: " + error_name, service_path);
715 InvokeErrorCallback(service_path, error_callback, error_name);
726 const std::string& service_path,
728 ConnectRequest* request = GetPendingRequest(service_path);
731 service_path);
736 pending_requests_.erase(service_path);
737 InvokeErrorCallback(service_path, error_callback, error_name);
743 const std::string& service_path,
746 NET_LOG_USER("Disconnect Request", service_path);
748 dbus::ObjectPath(service_path),
750 AsWeakPtr(), service_path, success_callback),
752 kErrorShillError, service_path, error_callback));
756 const std::string& service_path,
758 NET_LOG_EVENT("Disconnect Request Sent", service_path);