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

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

Issue 260083007: Replace chrome://network implementation with networkConfig API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Error handling Created 6 years, 7 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 | Annotate | Revision Log
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Retrieves the ONC state dictionary for |favorite| using GetStateProperties. 94 // Retrieves the ONC state dictionary for |favorite| 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 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateFavoriteStateToONC( 96 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateFavoriteStateToONC(
97 const FavoriteState* favorite); 97 const FavoriteState* favorite);
98 98
99 // Retrieves the list of network services by passing |pattern|, 99 // Retrieves the list of network services by passing |pattern|,
100 // |configured_only|, and |visible_only| to NetworkStateHandler:: 100 // |configured_only|, and |visible_only| to NetworkStateHandler::
101 // GetNetworkListByType(). Translates the result into a list of ONC 101 // GetNetworkListByType(). Translates the result into a list of ONC
102 // dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit 102 // dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit
103 // the number of results. 103 // the number of results. If |debugging_properties| is true then also include
104 // additional debugging properties.
pneubeck (no reviews) 2014/05/22 16:24:20 Maybe drop a note that |debugging_properties=true|
stevenjb 2014/05/23 21:50:59 Done.
104 CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC( 105 CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
105 NetworkTypePattern pattern, 106 NetworkTypePattern pattern,
106 bool configured_only, 107 bool configured_only,
107 bool visible_only, 108 bool visible_only,
108 int limit); 109 int limit,
110 bool debugging_properties);
109 111
110 } // namespace network_util 112 } // namespace network_util
111 } // namespace chromeos 113 } // namespace chromeos
112 114
113 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_ 115 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698