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 "extensions/browser/sandboxed_unpacker.h" | 5 #include "extensions/browser/sandboxed_unpacker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 IPC::Message pickle(file_str.data(), file_str.size()); | 205 IPC::Message pickle(file_str.data(), file_str.size()); |
206 base::PickleIterator iter(pickle); | 206 base::PickleIterator iter(pickle); |
207 return IPC::ReadParam(&pickle, &iter, catalogs); | 207 return IPC::ReadParam(&pickle, &iter, catalogs); |
208 } | 208 } |
209 | 209 |
210 } // namespace | 210 } // namespace |
211 | 211 |
212 SandboxedUnpackerClient::SandboxedUnpackerClient() | 212 SandboxedUnpackerClient::SandboxedUnpackerClient() |
213 : RefCountedDeleteOnMessageLoop<SandboxedUnpackerClient>( | 213 : RefCountedDeleteOnMessageLoop<SandboxedUnpackerClient>( |
214 content::BrowserThread::GetMessageLoopProxyForThread( | 214 content::BrowserThread::GetTaskRunnerForThread( |
215 content::BrowserThread::UI)) { | 215 content::BrowserThread::UI)) { |
216 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 216 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
217 } | 217 } |
218 | 218 |
219 SandboxedUnpacker::SandboxedUnpacker( | 219 SandboxedUnpacker::SandboxedUnpacker( |
220 Manifest::Location location, | 220 Manifest::Location location, |
221 int creation_flags, | 221 int creation_flags, |
222 const base::FilePath& extensions_dir, | 222 const base::FilePath& extensions_dir, |
223 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner, | 223 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner, |
224 SandboxedUnpackerClient* client) | 224 SandboxedUnpackerClient* client) |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 | 925 |
926 SandboxedUnpacker::UtilityHostWrapper::~UtilityHostWrapper() { | 926 SandboxedUnpacker::UtilityHostWrapper::~UtilityHostWrapper() { |
927 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 927 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
928 if (utility_host_) { | 928 if (utility_host_) { |
929 utility_host_->EndBatchMode(); | 929 utility_host_->EndBatchMode(); |
930 utility_host_.reset(); | 930 utility_host_.reset(); |
931 } | 931 } |
932 } | 932 } |
933 | 933 |
934 } // namespace extensions | 934 } // namespace extensions |
OLD | NEW |