OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 12 #include "chromeos/chromeos_export.h" |
13 #include "chrome/browser/chromeos/dbus/flimflam_client_helper.h" | 13 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 14 #include "chromeos/dbus/flimflam_client_helper.h" |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 | 17 |
17 class Value; | 18 class Value; |
18 class DictionaryValue; | 19 class DictionaryValue; |
19 | 20 |
20 } // namespace base | 21 } // namespace base |
21 | 22 |
22 namespace dbus { | 23 namespace dbus { |
23 | 24 |
24 class Bus; | 25 class Bus; |
25 | 26 |
26 } // namespace dbus | 27 } // namespace dbus |
27 | 28 |
28 namespace chromeos { | 29 namespace chromeos { |
29 | 30 |
30 // FlimflamNetworkClient is used to communicate with the Flimflam Network | 31 // FlimflamNetworkClient is used to communicate with the Flimflam Network |
31 // service. All methods should be called from the origin thread which | 32 // service. All methods should be called from the origin thread which |
32 // initializes the DBusThreadManager instance. | 33 // initializes the DBusThreadManager instance. |
33 class FlimflamNetworkClient { | 34 class CHROMEOS_EXPORT FlimflamNetworkClient { |
34 public: | 35 public: |
35 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler; | 36 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler; |
36 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback; | 37 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback; |
37 | 38 |
38 virtual ~FlimflamNetworkClient(); | 39 virtual ~FlimflamNetworkClient(); |
39 | 40 |
40 // Factory function, creates a new instance which is owned by the caller. | 41 // Factory function, creates a new instance which is owned by the caller. |
41 // For normal usage, access the singleton via DBusThreadManager::Get(). | 42 // For normal usage, access the singleton via DBusThreadManager::Get(). |
42 static FlimflamNetworkClient* Create(DBusClientImplementationType type, | 43 static FlimflamNetworkClient* Create(DBusClientImplementationType type, |
43 dbus::Bus* bus); | 44 dbus::Bus* bus); |
(...skipping 12 matching lines...) Expand all Loading... |
56 protected: | 57 protected: |
57 // Create() should be used instead. | 58 // Create() should be used instead. |
58 FlimflamNetworkClient(); | 59 FlimflamNetworkClient(); |
59 | 60 |
60 private: | 61 private: |
61 DISALLOW_COPY_AND_ASSIGN(FlimflamNetworkClient); | 62 DISALLOW_COPY_AND_ASSIGN(FlimflamNetworkClient); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace chromeos | 65 } // namespace chromeos |
65 | 66 |
66 #endif // CHROME_BROWSER_CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ | 67 #endif // CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
OLD | NEW |