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/nacl_host/nacl_file_host.h" | 5 #include "chrome/browser/nacl_host/nacl_file_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "base/strings/utf_string_conversions.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
13 #include "base/utf_string_conversions.h" | |
14 #include "chrome/browser/extensions/extension_info_map.h" | 14 #include "chrome/browser/extensions/extension_info_map.h" |
15 #include "chrome/browser/nacl_host/nacl_browser.h" | 15 #include "chrome/browser/nacl_host/nacl_browser.h" |
16 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 16 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" | 18 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" |
19 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/browser/site_instance.h" | 22 #include "content/public/browser/site_instance.h" |
23 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 base::Bind( | 340 base::Bind( |
341 &DoOpenNaClExecutableOnThreadPool, | 341 &DoOpenNaClExecutableOnThreadPool, |
342 chrome_render_message_filter, | 342 chrome_render_message_filter, |
343 extension_info_map, | 343 extension_info_map, |
344 file_url, reply_msg))) { | 344 file_url, reply_msg))) { |
345 NotifyRendererOfError(chrome_render_message_filter.get(), reply_msg); | 345 NotifyRendererOfError(chrome_render_message_filter.get(), reply_msg); |
346 } | 346 } |
347 } | 347 } |
348 | 348 |
349 } // namespace nacl_file_host | 349 } // namespace nacl_file_host |
OLD | NEW |