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

Side by Side Diff: ui/chromeos/network/network_connect.h

Issue 2430003002: NetworkConnect::Delegate: service_path -> network_id (Closed)
Patch Set: Rebase Created 4 years, 2 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 (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 UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H 5 #ifndef UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H
6 #define UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H 6 #define UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class UI_CHROMEOS_EXPORT NetworkConnect { 24 class UI_CHROMEOS_EXPORT NetworkConnect {
25 public: 25 public:
26 class Delegate { 26 class Delegate {
27 public: 27 public:
28 // Shows UI to configure or activate the network specified by |network_id|, 28 // Shows UI to configure or activate the network specified by |network_id|,
29 // which may include showing Payment or Portal UI when appropriate. 29 // which may include showing Payment or Portal UI when appropriate.
30 virtual void ShowNetworkConfigure(const std::string& network_id) = 0; 30 virtual void ShowNetworkConfigure(const std::string& network_id) = 0;
31 31
32 // Shows the settings related to network. If |network_id| is not empty, 32 // Shows the settings related to network. If |network_id| is not empty,
33 // show the settings for that network. 33 // show the settings for that network.
34 virtual void ShowNetworkSettingsForGuid(const std::string& network_id) = 0; 34 virtual void ShowNetworkSettings(const std::string& network_id) = 0;
35 35
36 // Shows UI to enroll the network specified by |network_id| if appropriate 36 // Shows UI to enroll the network specified by |network_id| if appropriate
37 // and returns true, otherwise returns false. 37 // and returns true, otherwise returns false.
38 virtual bool ShowEnrollNetwork(const std::string& network_id) = 0; 38 virtual bool ShowEnrollNetwork(const std::string& network_id) = 0;
39 39
40 // Shows UI to unlock a mobile sim. 40 // Shows UI to unlock a mobile sim.
41 virtual void ShowMobileSimDialog() = 0; 41 virtual void ShowMobileSimDialog() = 0;
42 42
43 // Shows UI to setup a mobile network. 43 // Shows UI to setup a mobile network.
44 virtual void ShowMobileSetupDialog(const std::string& service_path) = 0; 44 virtual void ShowMobileSetupDialog(const std::string& network_id) = 0;
45 45
46 protected: 46 protected:
47 virtual ~Delegate() {} 47 virtual ~Delegate() {}
48 }; 48 };
49 49
50 // Creates the global NetworkConnect object. |delegate| is owned by the 50 // Creates the global NetworkConnect object. |delegate| is owned by the
51 // caller. 51 // caller.
52 static void Initialize(Delegate* delegate); 52 static void Initialize(Delegate* delegate);
53 53
54 // Destroys the global NetworkConnect object. 54 // Destroys the global NetworkConnect object.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 protected: 114 protected:
115 NetworkConnect(); 115 NetworkConnect();
116 116
117 private: 117 private:
118 DISALLOW_COPY_AND_ASSIGN(NetworkConnect); 118 DISALLOW_COPY_AND_ASSIGN(NetworkConnect);
119 }; 119 };
120 120
121 } // ui 121 } // ui
122 122
123 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H 123 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc ('k') | ui/chromeos/network/network_connect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698