OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 IMAGE_BURN_SERVICE_H_ | 5 #ifndef IMAGE_BURN_SERVICE_H_ |
6 #define IMAGE_BURN_SERVICE_H_ | 6 #define IMAGE_BURN_SERVICE_H_ |
7 | 7 |
8 #include <base/basictypes.h> | 8 #include <base/basictypes.h> |
9 #include <chromeos/dbus/abstract_dbus_service.h> | 9 #include <chromeos/dbus/abstract_dbus_service.h> |
10 #include <chromeos/dbus/dbus.h> | 10 #include <chromeos/dbus/dbus.h> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void SendProgressSignal(int64 amount_burnt, | 65 void SendProgressSignal(int64 amount_burnt, |
66 int64 total_size, | 66 int64 total_size, |
67 const char* target_path); | 67 const char* target_path); |
68 void SendFinishedSignal(const char* target_path, | 68 void SendFinishedSignal(const char* target_path, |
69 bool success, | 69 bool success, |
70 const char* error); | 70 const char* error); |
71 | 71 |
72 // Reads last 4 bytes from gzip file (which hold uncompressed content size) | 72 // Reads last 4 bytes from gzip file (which hold uncompressed content size) |
73 // maximum content size supported is 4GB. | 73 // maximum content size supported is 4GB. |
74 int64 GetTotalImageSize(const char* from_path); | 74 int64 GetTotalImageSize(const char* from_path); |
75 bool IsBootPath(const char* device_path); | |
76 | 75 |
77 ImageBurner* image_burner_; | 76 ImageBurner* image_burner_; |
78 GMainLoop* main_loop_; | 77 GMainLoop* main_loop_; |
79 guint signals_[kNumSignals]; | 78 guint signals_[kNumSignals]; |
80 bool shutting_down_; | 79 bool shutting_down_; |
81 bool burning_; | 80 bool burning_; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace imageburn | 83 } // namespace imageburn |
85 | 84 |
86 #endif // IMAGE_BURN_SERVICE_H_ | 85 #endif // IMAGE_BURN_SERVICE_H_ |
87 | 86 |
OLD | NEW |