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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/extensions/api/image_writer_private/image_writer_utilit
y_client.h" | 11 #include "chrome/browser/extensions/api/image_writer_private/image_writer_utilit
y_client.h" |
12 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" | 12 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" |
13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 if (!error_callback_.is_null()) { | 160 if (!error_callback_.is_null()) { |
161 task_runner_->PostTask(FROM_HERE, base::Bind(error_callback_, message)); | 161 task_runner_->PostTask(FROM_HERE, base::Bind(error_callback_, message)); |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 void ImageWriterUtilityClient::OnWriteImageProgress(int64_t progress) { | 165 void ImageWriterUtilityClient::OnWriteImageProgress(int64_t progress) { |
166 if (!progress_callback_.is_null()) { | 166 if (!progress_callback_.is_null()) { |
167 task_runner_->PostTask(FROM_HERE, base::Bind(progress_callback_, progress)); | 167 task_runner_->PostTask(FROM_HERE, base::Bind(progress_callback_, progress)); |
168 } | 168 } |
169 } | 169 } |
OLD | NEW |