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

Side by Side Diff: chrome/utility/image_writer/image_writer_handler.h

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/utility/image_writer/image_writer.cc ('k') | chrome/utility/image_writer/image_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698