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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_api.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 NETWORKINGPRIVATE_STARTCONNECT); 291 NETWORKINGPRIVATE_STARTCONNECT);
292 292
293 protected: 293 protected:
294 ~NetworkingPrivateStartConnectFunction() override; 294 ~NetworkingPrivateStartConnectFunction() override;
295 295
296 // ExtensionFunction: 296 // ExtensionFunction:
297 ResponseAction Run() override; 297 ResponseAction Run() override;
298 298
299 private: 299 private:
300 void Success(); 300 void Success();
301 void Failure(const std::string& error); 301 void Failure(const std::string& guid, const std::string& error);
302 302
303 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateStartConnectFunction); 303 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateStartConnectFunction);
304 }; 304 };
305 305
306 // Implements the chrome.networkingPrivate.startDisconnect method. 306 // Implements the chrome.networkingPrivate.startDisconnect method.
307 class NetworkingPrivateStartDisconnectFunction 307 class NetworkingPrivateStartDisconnectFunction
308 : public UIThreadExtensionFunction { 308 : public UIThreadExtensionFunction {
309 public: 309 public:
310 NetworkingPrivateStartDisconnectFunction() {} 310 NetworkingPrivateStartDisconnectFunction() {}
311 DECLARE_EXTENSION_FUNCTION("networkingPrivate.startDisconnect", 311 DECLARE_EXTENSION_FUNCTION("networkingPrivate.startDisconnect",
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 // ExtensionFunction: 524 // ExtensionFunction:
525 ResponseAction Run() override; 525 ResponseAction Run() override;
526 526
527 private: 527 private:
528 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetGlobalPolicyFunction); 528 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetGlobalPolicyFunction);
529 }; 529 };
530 530
531 } // namespace extensions 531 } // namespace extensions
532 532
533 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 533 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698