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 #include "chrome/utility/image_writer/image_writer_handler.h" | 5 #include "chrome/utility/image_writer/image_writer_handler.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "chrome/common/chrome_utility_messages.h" | 8 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" |
9 #include "chrome/utility/image_writer/error_messages.h" | 9 #include "chrome/utility/image_writer/error_messages.h" |
10 #include "content/public/utility/utility_thread.h" | 10 #include "content/public/utility/utility_thread.h" |
11 | 11 |
12 namespace image_writer { | 12 namespace image_writer { |
13 | 13 |
14 ImageWriterHandler::ImageWriterHandler() {} | 14 ImageWriterHandler::ImageWriterHandler() {} |
15 ImageWriterHandler::~ImageWriterHandler() {} | 15 ImageWriterHandler::~ImageWriterHandler() {} |
16 | 16 |
17 void ImageWriterHandler::SendSucceeded() { | 17 void ImageWriterHandler::SendSucceeded() { |
18 Send(new ChromeUtilityHostMsg_ImageWriter_Succeeded()); | 18 Send(new ChromeUtilityHostMsg_ImageWriter_Succeeded()); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 void ImageWriterHandler::OnCancel() { | 92 void ImageWriterHandler::OnCancel() { |
93 if (image_writer_.get()) { | 93 if (image_writer_.get()) { |
94 image_writer_->Cancel(); | 94 image_writer_->Cancel(); |
95 } else { | 95 } else { |
96 SendCancelled(); | 96 SendCancelled(); |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 } // namespace image_writer | 100 } // namespace image_writer |
OLD | NEW |