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

Unified 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: Rebased. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_profile.h
diff --git a/chromeos/network/network_profile.h b/chromeos/network/network_profile.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc11a0c33d1f1691e5da791c5a86c55e06417693
--- /dev/null
+++ b/chromeos/network/network_profile.h
@@ -0,0 +1,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_
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_unittest.cc ('k') | chromeos/network/network_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698