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

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

Issue 1272003002: Allow networkingPrivate to request configure UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
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_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Delegate for forwarding UI requests, e.g. for showing the account UI. 83 // Delegate for forwarding UI requests, e.g. for showing the account UI.
84 class UIDelegate { 84 class UIDelegate {
85 public: 85 public:
86 UIDelegate(); 86 UIDelegate();
87 virtual ~UIDelegate(); 87 virtual ~UIDelegate();
88 88
89 // Navigate to the acoount details page for the cellular network associated 89 // Navigate to the acoount details page for the cellular network associated
90 // with |guid|. 90 // with |guid|.
91 virtual void ShowAccountDetails(const std::string& guid) const = 0; 91 virtual void ShowAccountDetails(const std::string& guid) const = 0;
92 92
93 // Possibly handle a connection failure, e.g. by showing the configuration
pneubeck (no reviews) 2015/08/06 09:52:01 as commented in network_connect.h, please consider
stevenjb 2015/08/07 17:39:37 Here at least I wanted to keep it general purpose
94 // UI. Returns true if the error was handled, i.e. the UI was shown.
95 virtual bool HandleConnectFailed(const std::string& guid,
96 const std::string error) const = 0;
97
93 private: 98 private:
94 DISALLOW_COPY_AND_ASSIGN(UIDelegate); 99 DISALLOW_COPY_AND_ASSIGN(UIDelegate);
95 }; 100 };
96 101
97 // If |verify_delegate| is not NULL, the Verify* methods will be forwarded 102 // If |verify_delegate| is not NULL, the Verify* methods will be forwarded
98 // to the delegate. Otherwise they will fail with a NotSupported error. 103 // to the delegate. Otherwise they will fail with a NotSupported error.
99 explicit NetworkingPrivateDelegate( 104 explicit NetworkingPrivateDelegate(
100 scoped_ptr<VerifyDelegate> verify_delegate); 105 scoped_ptr<VerifyDelegate> verify_delegate);
101 ~NetworkingPrivateDelegate() override; 106 ~NetworkingPrivateDelegate() override;
102 107
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 218
214 // Interface for UI methods. May be null. 219 // Interface for UI methods. May be null.
215 scoped_ptr<UIDelegate> ui_delegate_; 220 scoped_ptr<UIDelegate> ui_delegate_;
216 221
217 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); 222 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate);
218 }; 223 };
219 224
220 } // namespace extensions 225 } // namespace extensions
221 226
222 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_ 227 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698