blob: e46fc0785a5ef4b7c7d972a9ee44ad48770f2d09 [file] [log] [blame]
// 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_ASH_COMPONENTS_NETWORK_NETWORK_PROFILE_H_
#define CHROMEOS_ASH_COMPONENTS_NETWORK_NETWORK_PROFILE_H_
#include <string>
#include "base/component_export.h"
namespace ash {
struct COMPONENT_EXPORT(CHROMEOS_NETWORK) 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 ash
// TODO(https://crbug.com/1164001): remove when the migration is finished.
namespace chromeos {
using ::ash::NetworkProfile;
}
#endif // CHROMEOS_ASH_COMPONENTS_NETWORK_NETWORK_PROFILE_H_