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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_chromeos.h

Issue 2814023002: Don't show network config UI when networkingPrivate.startConenct fails (Closed)
Patch Set: . Created 3 years, 8 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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Populate ThirdPartyVPN.ProviderName with the provider name for third-party 111 // Populate ThirdPartyVPN.ProviderName with the provider name for third-party
112 // VPNs. The provider name needs to be looked up from the list of extensions 112 // VPNs. The provider name needs to be looked up from the list of extensions
113 // which is not available to the chromeos/network module. 113 // which is not available to the chromeos/network module.
114 void AppendThirdPartyProviderName(base::DictionaryValue* dictionary); 114 void AppendThirdPartyProviderName(base::DictionaryValue* dictionary);
115 115
116 // Sets the active proxy values in managed network configurations. 116 // Sets the active proxy values in managed network configurations.
117 void SetManagedActiveProxyValues(const std::string& guid, 117 void SetManagedActiveProxyValues(const std::string& guid,
118 base::DictionaryValue* dictionary); 118 base::DictionaryValue* dictionary);
119 119
120 // Handles connection failures, possibly showing UI for configuration
121 // failures, then calls the appropriate callback.
122 void ConnectFailureCallback(
123 const std::string& guid,
124 const VoidCallback& success_callback,
125 const FailureCallback& failure_callback,
126 const std::string& error_name,
127 std::unique_ptr<base::DictionaryValue> error_data);
128
129 content::BrowserContext* browser_context_; 120 content::BrowserContext* browser_context_;
130 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; 121 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_;
131 122
132 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); 123 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS);
133 }; 124 };
134 125
135 } // namespace extensions 126 } // namespace extensions
136 127
137 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS _H_ 128 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698