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

Side by Side Diff: chrome/browser/chromeos/dbus/flimflam_ipconfig_client.h

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/callback.h"
12 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h"
13 #include "chrome/browser/chromeos/dbus/flimflam_client_helper.h"
14
15 namespace base {
16
17 class Value;
18 class DictionaryValue;
19
20 } // namespace base
21
22 namespace dbus {
23
24 class Bus;
25 class ObjectPath;
26
27 } // namespace dbus
28
29 namespace chromeos {
30
31 // FlimflamIPConfigClient is used to communicate with the Flimflam IPConfig
32 // service. All methods should be called from the origin thread which
33 // initializes the DBusThreadManager instance.
34 class FlimflamIPConfigClient {
35 public:
36 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler;
37 typedef FlimflamClientHelper::VoidCallback VoidCallback;
38 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback;
39 virtual ~FlimflamIPConfigClient();
40
41 // Factory function, creates a new instance which is owned by the caller.
42 // For normal usage, access the singleton via DBusThreadManager::Get().
43 static FlimflamIPConfigClient* Create(DBusClientImplementationType type,
44 dbus::Bus* bus);
45
46 // Sets PropertyChanged signal handler.
47 virtual void SetPropertyChangedHandler(
48 const PropertyChangedHandler& handler) = 0;
49
50 // Resets PropertyChanged signal handler.
51 virtual void ResetPropertyChangedHandler() = 0;
52
53 // Calls GetProperties method.
54 // |callback| is called after the method call succeeds.
55 virtual void GetProperties(const DictionaryValueCallback& callback) = 0;
56
57 // Calls SetProperty method.
58 // |callback| is called after the method call succeeds.
59 virtual void SetProperty(const std::string& name,
60 const base::Value& value,
61 const VoidCallback& callback) = 0;
62
63 // Calls ClearProperty method.
64 // |callback| is called after the method call succeeds.
65 virtual void ClearProperty(const std::string& name,
66 const VoidCallback& callback) = 0;
67
68 // Calls Remove method.
69 // |callback| is called after the method call succeeds.
70 virtual void Remove(const VoidCallback& callback) = 0;
71
72 protected:
73 // Create() should be used instead.
74 FlimflamIPConfigClient();
75
76 private:
77 DISALLOW_COPY_AND_ASSIGN(FlimflamIPConfigClient);
78 };
79
80 } // namespace chromeos
81
82 #endif // CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698