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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnOpenNaClExecutable(int render_view_id, |
68 const GURL& file_url, | 70 const GURL& file_url, |
| 71 const std::vector<GURL>& resource_urls, |
69 IPC::Message* reply_msg); | 72 IPC::Message* reply_msg); |
70 void SyncReturnTemporaryFile(IPC::Message* reply_msg, | 73 void SyncReturnTemporaryFile(IPC::Message* reply_msg, |
71 base::File file); | 74 base::File file); |
72 void AsyncReturnTemporaryFile(int pp_instance, | 75 void AsyncReturnTemporaryFile(int pp_instance, |
73 const base::File& file, | 76 const base::File& file, |
74 bool is_hit); | 77 bool is_hit); |
75 void OnNaClDebugEnabledForURL(const GURL& nmf_url, bool* should_debug); | 78 void OnNaClDebugEnabledForURL(const GURL& nmf_url, bool* should_debug); |
76 | 79 |
77 int render_process_id_; | 80 int render_process_id_; |
78 | 81 |
79 // 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 |
80 // read on the IO thread. | 83 // read on the IO thread. |
81 bool off_the_record_; | 84 bool off_the_record_; |
82 base::FilePath profile_directory_; | 85 base::FilePath profile_directory_; |
83 scoped_refptr<net::URLRequestContextGetter> request_context_; | 86 scoped_refptr<net::URLRequestContextGetter> request_context_; |
84 | 87 |
85 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; | 88 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); | 90 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace nacl | 93 } // namespace nacl |
91 | 94 |
92 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 95 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
OLD | NEW |