OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/chromeos/file_manager/zip_file_creator.h" | 5 #include "chrome/browser/chromeos/file_manager/zip_file_creator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util_proxy.h" | 9 #include "base/files/file_util_proxy.h" |
10 #include "base/memory/scoped_handle.h" | 10 #include "base/memory/scoped_handle.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/chrome_utility_messages.h" | 16 #include "chrome/common/chrome_utility_messages.h" |
17 #include "chrome/common/extensions/extension_file_util.h" | |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/utility_process_host.h" | 18 #include "content/public/browser/utility_process_host.h" |
20 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
21 | 20 |
22 using content::BrowserThread; | 21 using content::BrowserThread; |
23 using content::UtilityProcessHost; | 22 using content::UtilityProcessHost; |
24 | 23 |
25 namespace file_manager { | 24 namespace file_manager { |
26 | 25 |
27 ZipFileCreator::ZipFileCreator( | 26 ZipFileCreator::ZipFileCreator( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 113 |
115 // Guard against calling observer multiple times. | 114 // Guard against calling observer multiple times. |
116 if (got_response_) | 115 if (got_response_) |
117 return; | 116 return; |
118 | 117 |
119 got_response_ = true; | 118 got_response_ = true; |
120 observer_->OnZipDone(success); | 119 observer_->OnZipDone(success); |
121 } | 120 } |
122 | 121 |
123 } // namespace file_manager | 122 } // namespace file_manager |
OLD | NEW |