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

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

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 7 years, 8 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_H_
6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_H_
7
8 #include <string>
9
10 #include "chromeos/chromeos_export.h"
11
12 namespace chromeos {
13
14 struct CHROMEOS_EXPORT NetworkProfile {
15 enum Type {
16 // NETWORK_PROFILE_EPHEMERAL, // Not persisted. Pseudo profile type for
17 // // unconfigured networks.
stevenjb 2013/04/26 21:00:49 ?
pneubeck (no reviews) 2013/04/29 18:05:51 Done.
18 TYPE_SHARED, // Shared by all users on the device.
19 TYPE_USER // Not visible to other users.
20 };
21
22 NetworkProfile(const std::string& profile_path,
23 const std::string& user_hash)
24 : path(profile_path),
25 userhash(user_hash) {}
stevenjb 2013/04/26 21:00:49 nit: } on separate line, blank line before members
pneubeck (no reviews) 2013/04/29 18:05:51 Done.
26 std::string path;
27 std::string userhash; // Only set for user profiles.
28
29 Type type() const {
30 return userhash.empty() ? TYPE_SHARED : TYPE_USER;
31 }
32 };
33
34 CHROMEOS_EXPORT std::string ProfileToString(const NetworkProfile* profile);
stevenjb 2013/04/26 21:00:49 This should be namespaced (chromeos is a very larg
pneubeck (no reviews) 2013/04/29 18:05:51 Done.
35
36 } // namespace chromeos
37
38 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698