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

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

Issue 762633002: Use NetworkConnectionObserver to trigger connect failure notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // The profile used is determined by |shared|. 89 // The profile used is determined by |shared|.
90 virtual void CreateConfigurationAndConnect(base::DictionaryValue* properties, 90 virtual void CreateConfigurationAndConnect(base::DictionaryValue* properties,
91 bool shared) = 0; 91 bool shared) = 0;
92 92
93 // Requests a new network configuration to be created from a dictionary of 93 // Requests a new network configuration to be created from a dictionary of
94 // Shill properties. The profile used is determined by |shared|. 94 // Shill properties. The profile used is determined by |shared|.
95 virtual void CreateConfiguration(base::DictionaryValue* properties, 95 virtual void CreateConfiguration(base::DictionaryValue* properties,
96 bool shared) = 0; 96 bool shared) = 0;
97 97
98 // Returns the localized string for shill error string |error|. 98 // Returns the localized string for shill error string |error|.
99 virtual base::string16 GetErrorString(const std::string& error, 99 virtual base::string16 GetShillErrorString(
100 const std::string& service_path) = 0; 100 const std::string& error,
101 const std::string& service_path) = 0;
101 102
102 // Shows the settings for the network specified by |service_path|. If empty, 103 // Shows the settings for the network specified by |service_path|. If empty,
103 // or no matching network exists, shows the general internet settings page. 104 // or no matching network exists, shows the general internet settings page.
104 virtual void ShowNetworkSettings(const std::string& service_path) = 0; 105 virtual void ShowNetworkSettings(const std::string& service_path) = 0;
105 106
106 protected: 107 protected:
107 NetworkConnect(); 108 NetworkConnect();
108 109
109 private: 110 private:
110 DISALLOW_COPY_AND_ASSIGN(NetworkConnect); 111 DISALLOW_COPY_AND_ASSIGN(NetworkConnect);
111 }; 112 };
112 113
113 } // ui 114 } // ui
114 115
115 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H 116 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698