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

Side by Side Diff: chromeos/dbus/shill_ipconfig_client_stub.h

Issue 12634019: NetworkChangeNotifierChromeos: Handle IPConfig property changes on the default network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « no previous file | chromeos/dbus/shill_ipconfig_client_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_
6 #define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ 6 #define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 const std::string& name, 35 const std::string& name,
36 const base::Value& value, 36 const base::Value& value,
37 const VoidDBusMethodCallback& callback) OVERRIDE; 37 const VoidDBusMethodCallback& callback) OVERRIDE;
38 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, 38 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path,
39 const std::string& name, 39 const std::string& name,
40 const VoidDBusMethodCallback& callback) OVERRIDE; 40 const VoidDBusMethodCallback& callback) OVERRIDE;
41 virtual void Remove(const dbus::ObjectPath& ipconfig_path, 41 virtual void Remove(const dbus::ObjectPath& ipconfig_path,
42 const VoidDBusMethodCallback& callback) OVERRIDE; 42 const VoidDBusMethodCallback& callback) OVERRIDE;
43 43
44 private: 44 private:
45 // Runs callback with |properties_|. 45 // Runs callback with |values|.
46 void PassProperties(const DictionaryValueCallback& callback) const; 46 void PassProperties(const base::DictionaryValue* values,
47 const DictionaryValueCallback& callback) const;
47 48
48 base::DictionaryValue properties_; 49 // Dictionary of <ipconfig_path, property dictionaries>
50 base::DictionaryValue ipconfigs_;
49 51
50 // Note: This should remain the last member so it'll be destroyed and 52 // Note: This should remain the last member so it'll be destroyed and
51 // invalidate its weak pointers before any other members are destroyed. 53 // invalidate its weak pointers before any other members are destroyed.
52 base::WeakPtrFactory<ShillIPConfigClientStub> weak_ptr_factory_; 54 base::WeakPtrFactory<ShillIPConfigClientStub> weak_ptr_factory_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ShillIPConfigClientStub); 56 DISALLOW_COPY_AND_ASSIGN(ShillIPConfigClientStub);
55 }; 57 };
56 58
57 } // namespace chromeos 59 } // namespace chromeos
58 60
59 #endif // CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ 61 #endif // CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/shill_ipconfig_client_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698