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_IMAGE_BURNER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_IMAGE_BURNER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_IMAGE_BURNER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_IMAGE_BURNER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/dbus/dbus_client_implementation_type.h" |
14 | 15 |
15 namespace dbus { | 16 namespace dbus { |
16 class Bus; | 17 class Bus; |
17 } | 18 } |
18 | 19 |
19 namespace chromeos { | 20 namespace chromeos { |
20 | 21 |
21 // ImageBurnerClient is used to communicate with the image burner. | 22 // ImageBurnerClient is used to communicate with the image burner. |
22 // All method should be called from the origin thread (UI thread) which | 23 // All method should be called from the origin thread (UI thread) which |
23 // initializes the DBusThreadManager instance. | 24 // initializes the DBusThreadManager instance. |
24 class ImageBurnerClient { | 25 class CHROMEOS_EXPORT ImageBurnerClient { |
25 public: | 26 public: |
26 virtual ~ImageBurnerClient(); | 27 virtual ~ImageBurnerClient(); |
27 | 28 |
28 // A callback to be called when DBus method call fails. | 29 // A callback to be called when DBus method call fails. |
29 typedef base::Callback<void()> ErrorCallback; | 30 typedef base::Callback<void()> ErrorCallback; |
30 | 31 |
31 // A callback to handle burn_finished signal. | 32 // A callback to handle burn_finished signal. |
32 typedef base::Callback<void(const std::string& target_path, | 33 typedef base::Callback<void(const std::string& target_path, |
33 bool success, | 34 bool success, |
34 const std::string& error)> BurnFinishedHandler; | 35 const std::string& error)> BurnFinishedHandler; |
(...skipping 28 matching lines...) Expand all Loading... |
63 protected: | 64 protected: |
64 // Create() should be used instead. | 65 // Create() should be used instead. |
65 ImageBurnerClient(); | 66 ImageBurnerClient(); |
66 | 67 |
67 private: | 68 private: |
68 DISALLOW_COPY_AND_ASSIGN(ImageBurnerClient); | 69 DISALLOW_COPY_AND_ASSIGN(ImageBurnerClient); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace chromeos | 72 } // namespace chromeos |
72 | 73 |
73 #endif // CHROME_BROWSER_CHROMEOS_DBUS_IMAGE_BURNER_CLIENT_H_ | 74 #endif // CHROMEOS_DBUS_IMAGE_BURNER_CLIENT_H_ |
OLD | NEW |