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

Side by Side Diff: chrome/browser/chromeos/dbus/flimflam_network_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_NETWORK_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_NETWORK_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
26 } // namespace dbus
27
28 namespace chromeos {
29
30 // FlimflamNetworkClient is used to communicate with the Flimflam Network
31 // service. All methods should be called from the origin thread which
32 // initializes the DBusThreadManager instance.
33 class FlimflamNetworkClient {
34 public:
35 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler;
36 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback;
37
38 virtual ~FlimflamNetworkClient();
39
40 // Factory function, creates a new instance which is owned by the caller.
41 // For normal usage, access the singleton via DBusThreadManager::Get().
42 static FlimflamNetworkClient* Create(DBusClientImplementationType type,
43 dbus::Bus* bus);
44
45 // Sets PropertyChanged signal handler.
46 virtual void SetPropertyChangedHandler(
47 const PropertyChangedHandler& handler) = 0;
48
49 // Resets PropertyChanged signal handler.
50 virtual void ResetPropertyChangedHandler() = 0;
51
52 // Calls GetProperties method.
53 // |callback| is called after the method call succeeds.
54 virtual void GetProperties(const DictionaryValueCallback& callback) = 0;
55
56 protected:
57 // Create() should be used instead.
58 FlimflamNetworkClient();
59
60 private:
61 DISALLOW_COPY_AND_ASSIGN(FlimflamNetworkClient);
62 };
63
64 } // namespace chromeos
65
66 #endif // CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/flimflam_ipconfig_client.cc ('k') | chrome/browser/chromeos/dbus/flimflam_network_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698