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

Side by Side Diff: image_burn_service.h

Issue 6357012: Use chromeos::IsBootDevicePath. (Closed) Base URL: http://git.chromium.org/git/image-burner.git@master
Patch Set: lint Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | image_burn_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | image_burn_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698