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; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void OnGetReadonlyPnaclFd(const std::string& filename, | 59 void OnGetReadonlyPnaclFd(const std::string& filename, |
58 bool is_executable, | 60 bool is_executable, |
59 IPC::Message* reply_msg); | 61 IPC::Message* reply_msg); |
60 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); | 62 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); |
61 void OnNaClGetNumProcessors(int* num_processors); | 63 void OnNaClGetNumProcessors(int* num_processors); |
62 void OnGetNexeFd(int render_view_id, | 64 void OnGetNexeFd(int render_view_id, |
63 int pp_instance, | 65 int pp_instance, |
64 const PnaclCacheInfo& cache_info); | 66 const PnaclCacheInfo& cache_info); |
65 void OnTranslationFinished(int instance, bool success); | 67 void OnTranslationFinished(int instance, bool success); |
66 void OnMissingArchError(int render_view_id); | 68 void OnMissingArchError(int render_view_id); |
67 void OnOpenNaClExecutable(int render_view_id, | 69 void OnOpenNaClResources(int render_view_id, |
68 const GURL& file_url, | 70 const std::vector<GURL>& resource_urls, |
69 bool enable_validation_caching, | 71 bool enable_validation_caching, |
70 IPC::Message* reply_msg); | 72 IPC::Message* reply_msg); |
71 void SyncReturnTemporaryFile(IPC::Message* reply_msg, | 73 void SyncReturnTemporaryFile(IPC::Message* reply_msg, |
72 base::File file); | 74 base::File file); |
73 void AsyncReturnTemporaryFile(int pp_instance, | 75 void AsyncReturnTemporaryFile(int pp_instance, |
74 const base::File& file, | 76 const base::File& file, |
75 bool is_hit); | 77 bool is_hit); |
76 void OnNaClDebugEnabledForURL(const GURL& nmf_url, bool* should_debug); | 78 void OnNaClDebugEnabledForURL(const GURL& nmf_url, bool* should_debug); |
77 | 79 |
78 int render_process_id_; | 80 int render_process_id_; |
79 | 81 |
80 // off_the_record_ is copied from the profile partly so that it can be | 82 // off_the_record_ is copied from the profile partly so that it can be |
81 // read on the IO thread. | 83 // read on the IO thread. |
82 bool off_the_record_; | 84 bool off_the_record_; |
83 base::FilePath profile_directory_; | 85 base::FilePath profile_directory_; |
84 scoped_refptr<net::URLRequestContextGetter> request_context_; | 86 scoped_refptr<net::URLRequestContextGetter> request_context_; |
85 | 87 |
86 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; | 88 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; |
87 | 89 |
88 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); | 90 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); |
89 }; | 91 }; |
90 | 92 |
91 } // namespace nacl | 93 } // namespace nacl |
92 | 94 |
93 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 95 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
OLD | NEW |