forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetwork_profile.h
38 lines (27 loc) · 937 Bytes
/
network_profile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_H_
#define CHROMEOS_NETWORK_NETWORK_PROFILE_H_
#include <string>
#include "chromeos/chromeos_export.h"
namespace chromeos {
struct CHROMEOS_EXPORT NetworkProfile {
enum Type {
TYPE_SHARED, // Shared by all users on the device.
TYPE_USER // Not visible to other users.
};
NetworkProfile(const std::string& profile_path,
const std::string& user_hash)
: path(profile_path),
userhash(user_hash) {
}
std::string path;
std::string userhash; // Only set for user profiles.
Type type() const {
return userhash.empty() ? TYPE_SHARED : TYPE_USER;
}
std::string ToDebugString() const;
};
} // namespace chromeos
#endif // CHROMEOS_NETWORK_NETWORK_PROFILE_H_