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

Side by Side Diff: chromeos/network/network_util.h

Issue 694533007: Add 'setProperties' to InternetOptionsHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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 CHROMEOS_NETWORK_NETWORK_UTIL_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_UTIL_H_
6 #define CHROMEOS_NETWORK_NETWORK_UTIL_H_ 6 #define CHROMEOS_NETWORK_NETWORK_UTIL_H_
7 7
8 // This header is introduced to make it easy to switch from chromeos_network.cc 8 // This header is introduced to make it easy to switch from chromeos_network.cc
9 // to Chrome's own DBus code. crosbug.com/16557 9 // to Chrome's own DBus code. crosbug.com/16557
10 // All calls to functions in chromeos_network.h should be made through 10 // All calls to functions in chromeos_network.h should be made through
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // in which case the contents of |scan_results| will be undefined. 90 // in which case the contents of |scan_results| will be undefined.
91 CHROMEOS_EXPORT bool ParseCellularScanResults( 91 CHROMEOS_EXPORT bool ParseCellularScanResults(
92 const base::ListValue& list, std::vector<CellularScanResult>* scan_results); 92 const base::ListValue& list, std::vector<CellularScanResult>* scan_results);
93 93
94 // Retrieves the ONC state dictionary for |network| using GetStateProperties. 94 // Retrieves the ONC state dictionary for |network| using GetStateProperties.
95 // This includes properties from the corresponding NetworkState if it exists. 95 // This includes properties from the corresponding NetworkState if it exists.
96 // Assumed to be called from the primary user profile. 96 // Assumed to be called from the primary user profile.
97 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateNetworkStateToONC( 97 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateNetworkStateToONC(
98 const NetworkState* network); 98 const NetworkState* network);
99 99
100 // Similar to TranslateNetworkStateToONC but just gets the properties required
101 // for configuration (i.e. no connection state properties).
102 scoped_ptr<base::DictionaryValue> TranslateNetworkConfigurationStateToONC(
103 const NetworkState* network);
104
100 // Retrieves the list of network services by passing |pattern|, 105 // Retrieves the list of network services by passing |pattern|,
101 // |configured_only|, and |visible_only| to NetworkStateHandler:: 106 // |configured_only|, and |visible_only| to NetworkStateHandler::
102 // GetNetworkListByType(). Translates the result into a list of ONC 107 // GetNetworkListByType(). Translates the result into a list of ONC
103 // dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit 108 // dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit
104 // the number of results. If |debugging_properties| is true then also include 109 // the number of results. If |debugging_properties| is true then also include
105 // additional debugging properties (used in release code for chrome://network). 110 // additional debugging properties (used in release code for chrome://network).
106 CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC( 111 CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
107 NetworkTypePattern pattern, 112 NetworkTypePattern pattern,
108 bool configured_only, 113 bool configured_only,
109 bool visible_only, 114 bool visible_only,
110 int limit, 115 int limit,
111 bool debugging_properties); 116 bool debugging_properties);
112 117
113 // Returns the Shill type corresponding to ONC |type| or an empty string if 118 // Returns the Shill type corresponding to ONC |type| or an empty string if
114 // there is no match. Only valid for ethernet, wifi, wimax, cellular, and vpn. 119 // there is no match. Only valid for ethernet, wifi, wimax, cellular, and vpn.
115 CHROMEOS_EXPORT std::string TranslateONCTypeToShill(const std::string& type); 120 CHROMEOS_EXPORT std::string TranslateONCTypeToShill(const std::string& type);
116 121
117 } // namespace network_util 122 } // namespace network_util
118 } // namespace chromeos 123 } // namespace chromeos
119 124
120 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_ 125 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698