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

Unified Diff: chromeos/dbus/shill_profile_client_stub.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
« no previous file with comments | « chromeos/dbus/shill_profile_client.cc ('k') | chromeos/dbus/shill_profile_client_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_profile_client_stub.h
diff --git a/chromeos/dbus/shill_profile_client_stub.h b/chromeos/dbus/shill_profile_client_stub.h
index efc86ce8da92c67efbe543c86c6c6a1162124807..61ab7d04f5238dc3cc0eba4186adcf37d7af76d1 100644
--- a/chromeos/dbus/shill_profile_client_stub.h
+++ b/chromeos/dbus/shill_profile_client_stub.h
@@ -5,9 +5,11 @@
#ifndef CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_
#define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_
+#include <map>
#include <string>
#include "base/basictypes.h"
+#include "chromeos/dbus/shill_manager_client.h"
#include "chromeos/dbus/shill_profile_client.h"
namespace chromeos {
@@ -41,18 +43,23 @@ class ShillProfileClientStub : public ShillProfileClient,
virtual ShillProfileClient::TestInterface* GetTestInterface() OVERRIDE;
// ShillProfileClient::TestInterface overrides.
- virtual void AddProfile(const std::string& profile_path) OVERRIDE;
+ virtual void AddProfile(const std::string& profile_path,
+ const std::string& userhash) OVERRIDE;
virtual void AddEntry(const std::string& profile_path,
const std::string& entry_path,
const base::DictionaryValue& properties) OVERRIDE;
virtual bool AddService(const std::string& service_path) OVERRIDE;
private:
- base::DictionaryValue* GetProfile(const dbus::ObjectPath& profile_path,
- const ErrorCallback& error_callback);
+ struct ProfileProperties;
+ typedef std::map<std::string, ProfileProperties*> ProfileMap;
- // This maps profile path -> entry path -> Shill properties.
- base::DictionaryValue profile_entries_;
+ ProfileProperties* GetProfile(const dbus::ObjectPath& profile_path,
+ const ErrorCallback& error_callback);
+
+ // The values are owned by this class and are explicitly destroyed where
+ // necessary.
+ ProfileMap profiles_;
DISALLOW_COPY_AND_ASSIGN(ShillProfileClientStub);
};
« no previous file with comments | « chromeos/dbus/shill_profile_client.cc ('k') | chromeos/dbus/shill_profile_client_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698