| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
| 6 #define COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 6 #define COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <vector> |
| 9 |
| 8 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 10 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 11 #include "content/public/browser/browser_message_filter.h" | 13 #include "content/public/browser/browser_message_filter.h" |
| 12 #include "ppapi/shared_impl/ppapi_permissions.h" | 14 #include "ppapi/shared_impl/ppapi_permissions.h" |
| 13 | 15 |
| 14 class GURL; | 16 class GURL; |
| 15 | 17 |
| 16 namespace nacl { | 18 namespace nacl { |
| 17 struct NaClLaunchParams; | 19 struct NaClLaunchParams; |
| 20 struct NaClResourceFileInfo; |
| 18 struct PnaclCacheInfo; | 21 struct PnaclCacheInfo; |
| 19 } | 22 } |
| 20 | 23 |
| 21 namespace net { | 24 namespace net { |
| 22 class HostResolver; | 25 class HostResolver; |
| 23 class URLRequestContextGetter; | 26 class URLRequestContextGetter; |
| 24 } | 27 } |
| 25 | 28 |
| 26 namespace nacl { | 29 namespace nacl { |
| 27 | 30 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 44 net::HostResolver* GetHostResolver(); | 47 net::HostResolver* GetHostResolver(); |
| 45 | 48 |
| 46 private: | 49 private: |
| 47 friend class content::BrowserThread; | 50 friend class content::BrowserThread; |
| 48 friend class base::DeleteHelper<NaClHostMessageFilter>; | 51 friend class base::DeleteHelper<NaClHostMessageFilter>; |
| 49 | 52 |
| 50 ~NaClHostMessageFilter() override; | 53 ~NaClHostMessageFilter() override; |
| 51 | 54 |
| 52 void OnLaunchNaCl(const NaClLaunchParams& launch_params, | 55 void OnLaunchNaCl(const NaClLaunchParams& launch_params, |
| 53 IPC::Message* reply_msg); | 56 IPC::Message* reply_msg); |
| 54 void LaunchNaClContinuation(const nacl::NaClLaunchParams& launch_params, | 57 void BatchOpenResourceFiles(const nacl::NaClLaunchParams& launch_params, |
| 55 IPC::Message* reply_msg, | 58 IPC::Message* reply_msg, |
| 56 ppapi::PpapiPermissions permissions); | 59 ppapi::PpapiPermissions permissions); |
| 60 void LaunchNaClContinuation( |
| 61 const nacl::NaClLaunchParams& launch_params, |
| 62 IPC::Message* reply_msg); |
| 63 void LaunchNaClContinuationOnIOThread( |
| 64 const nacl::NaClLaunchParams& launch_params, |
| 65 IPC::Message* reply_msg, |
| 66 const std::vector< |
| 67 nacl::NaClResourceFileInfo>& prefetched_resource_files_info, |
| 68 ppapi::PpapiPermissions permissions); |
| 57 void OnGetReadonlyPnaclFd(const std::string& filename, | 69 void OnGetReadonlyPnaclFd(const std::string& filename, |
| 58 bool is_executable, | 70 bool is_executable, |
| 59 IPC::Message* reply_msg); | 71 IPC::Message* reply_msg); |
| 60 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); | 72 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); |
| 61 void OnNaClGetNumProcessors(int* num_processors); | 73 void OnNaClGetNumProcessors(int* num_processors); |
| 62 void OnGetNexeFd(int render_view_id, | 74 void OnGetNexeFd(int render_view_id, |
| 63 int pp_instance, | 75 int pp_instance, |
| 64 const PnaclCacheInfo& cache_info); | 76 const PnaclCacheInfo& cache_info); |
| 65 void OnTranslationFinished(int instance, bool success); | 77 void OnTranslationFinished(int instance, bool success); |
| 66 void OnMissingArchError(int render_view_id); | 78 void OnMissingArchError(int render_view_id); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 84 scoped_refptr<net::URLRequestContextGetter> request_context_; | 96 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 85 | 97 |
| 86 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; | 98 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; |
| 87 | 99 |
| 88 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); | 100 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); |
| 89 }; | 101 }; |
| 90 | 102 |
| 91 } // namespace nacl | 103 } // namespace nacl |
| 92 | 104 |
| 93 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 105 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
| OLD | NEW |