OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ |
6 #define CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ | 6 #define CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <string> | 11 #include <string> |
11 | 12 |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "chrome/utility/image_writer/image_writer.h" | 13 #include "chrome/utility/image_writer/image_writer.h" |
14 #include "chrome/utility/utility_message_handler.h" | 14 #include "chrome/utility/utility_message_handler.h" |
15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class FilePath; | 18 class FilePath; |
19 } | 19 } |
20 | 20 |
21 namespace image_writer { | 21 namespace image_writer { |
22 | 22 |
(...skipping 15 matching lines...) Expand all Loading... |
38 bool OnMessageReceived(const IPC::Message& message) override; | 38 bool OnMessageReceived(const IPC::Message& message) override; |
39 | 39 |
40 // Small wrapper for sending on the UtilityProcess. | 40 // Small wrapper for sending on the UtilityProcess. |
41 void Send(IPC::Message* msg); | 41 void Send(IPC::Message* msg); |
42 | 42 |
43 // Message handlers. | 43 // Message handlers. |
44 void OnWriteStart(const base::FilePath& image, const base::FilePath& device); | 44 void OnWriteStart(const base::FilePath& image, const base::FilePath& device); |
45 void OnVerifyStart(const base::FilePath& image, const base::FilePath& device); | 45 void OnVerifyStart(const base::FilePath& image, const base::FilePath& device); |
46 void OnCancel(); | 46 void OnCancel(); |
47 | 47 |
48 scoped_ptr<ImageWriter> image_writer_; | 48 std::unique_ptr<ImageWriter> image_writer_; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace image_writer | 51 } // namespace image_writer |
52 | 52 |
53 #endif // CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ | 53 #endif // CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_HANDLER_H_ |
OLD | NEW |