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" | 17 #include "chrome/common/extensions/extension_file_util.h" |
18 #include "chrome/common/extensions/extension_manifest_constants.h" | |
19 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/utility_process_host.h" | 19 #include "content/public/browser/utility_process_host.h" |
21 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
22 | 21 |
23 using content::BrowserThread; | 22 using content::BrowserThread; |
24 using content::UtilityProcessHost; | 23 using content::UtilityProcessHost; |
25 | 24 |
26 namespace file_manager { | 25 namespace file_manager { |
27 | 26 |
28 ZipFileCreator::ZipFileCreator( | 27 ZipFileCreator::ZipFileCreator( |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 116 |
118 // Guard against calling observer multiple times. | 117 // Guard against calling observer multiple times. |
119 if (got_response_) | 118 if (got_response_) |
120 return; | 119 return; |
121 | 120 |
122 got_response_ = true; | 121 got_response_ = true; |
123 observer_->OnZipDone(success); | 122 observer_->OnZipDone(success); |
124 } | 123 } |
125 | 124 |
126 } // namespace file_manager | 125 } // namespace file_manager |
OLD | NEW |