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 "components/nacl/browser/nacl_file_host.h" | 5 #include "components/nacl/browser/nacl_file_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/path_service.h" | |
12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
14 #include "components/nacl/browser/nacl_browser.h" | 13 #include "components/nacl/browser/nacl_browser.h" |
15 #include "components/nacl/browser/nacl_browser_delegate.h" | 14 #include "components/nacl/browser/nacl_browser_delegate.h" |
16 #include "components/nacl/browser/nacl_host_message_filter.h" | 15 #include "components/nacl/browser/nacl_host_message_filter.h" |
17 #include "components/nacl/common/nacl_host_messages.h" | 16 #include "components/nacl/common/nacl_host_messages.h" |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/site_instance.h" | 19 #include "content/public/browser/site_instance.h" |
21 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 FROM_HERE, | 246 FROM_HERE, |
248 base::Bind( | 247 base::Bind( |
249 &DoOpenNaClExecutableOnThreadPool, | 248 &DoOpenNaClExecutableOnThreadPool, |
250 nacl_host_message_filter, | 249 nacl_host_message_filter, |
251 file_url, reply_msg))) { | 250 file_url, reply_msg))) { |
252 NotifyRendererOfError(nacl_host_message_filter.get(), reply_msg); | 251 NotifyRendererOfError(nacl_host_message_filter.get(), reply_msg); |
253 } | 252 } |
254 } | 253 } |
255 | 254 |
256 } // namespace nacl_file_host | 255 } // namespace nacl_file_host |
OLD | NEW |