OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/file_util.h" | 5 #include "base/files/file_util.h" |
6 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 6 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
7 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 7 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
8 #include "chrome/browser/extensions/api/image_writer_private/write_from_url_oper
ation.h" | 8 #include "chrome/browser/extensions/api/image_writer_private/write_from_url_oper
ation.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 namespace image_writer { | 13 namespace image_writer { |
14 | 14 |
15 using content::BrowserThread; | 15 using content::BrowserThread; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 if (IsCancelled()) { | 182 if (IsCancelled()) { |
183 return; | 183 return; |
184 } | 184 } |
185 | 185 |
186 SetProgress(kProgressComplete); | 186 SetProgress(kProgressComplete); |
187 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, continuation); | 187 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, continuation); |
188 } | 188 } |
189 | 189 |
190 } // namespace image_writer | 190 } // namespace image_writer |
191 } // namespace extensions | 191 } // namespace extensions |
OLD | NEW |