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 "base/files/file.h" |
8 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "base/platform_file.h" | |
11 #include "content/public/browser/browser_message_filter.h" | 11 #include "content/public/browser/browser_message_filter.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace nacl { | 15 namespace nacl { |
16 struct NaClLaunchParams; | 16 struct NaClLaunchParams; |
17 struct PnaclCacheInfo; | 17 struct PnaclCacheInfo; |
18 } | 18 } |
19 | 19 |
20 namespace net { | 20 namespace net { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); | 56 void OnNaClCreateTemporaryFile(IPC::Message* reply_msg); |
57 void OnGetNexeFd(int render_view_id, | 57 void OnGetNexeFd(int render_view_id, |
58 int pp_instance, | 58 int pp_instance, |
59 const PnaclCacheInfo& cache_info); | 59 const PnaclCacheInfo& cache_info); |
60 void OnTranslationFinished(int instance, bool success); | 60 void OnTranslationFinished(int instance, bool success); |
61 void OnNaClErrorStatus(int render_view_id, int error_id); | 61 void OnNaClErrorStatus(int render_view_id, int error_id); |
62 void OnOpenNaClExecutable(int render_view_id, | 62 void OnOpenNaClExecutable(int render_view_id, |
63 const GURL& file_url, | 63 const GURL& file_url, |
64 IPC::Message* reply_msg); | 64 IPC::Message* reply_msg); |
65 void SyncReturnTemporaryFile(IPC::Message* reply_msg, | 65 void SyncReturnTemporaryFile(IPC::Message* reply_msg, |
66 base::PlatformFile fd); | 66 base::File file); |
67 void AsyncReturnTemporaryFile(int pp_instance, | 67 void AsyncReturnTemporaryFile(int pp_instance, |
68 base::PlatformFile fd, | 68 base::PlatformFile fd, |
69 bool is_hit); | 69 bool is_hit); |
70 #endif | 70 #endif |
71 int render_process_id_; | 71 int render_process_id_; |
72 | 72 |
73 // off_the_record_ is copied from the profile partly so that it can be | 73 // off_the_record_ is copied from the profile partly so that it can be |
74 // read on the IO thread. | 74 // read on the IO thread. |
75 bool off_the_record_; | 75 bool off_the_record_; |
76 base::FilePath profile_directory_; | 76 base::FilePath profile_directory_; |
77 scoped_refptr<net::URLRequestContextGetter> request_context_; | 77 scoped_refptr<net::URLRequestContextGetter> request_context_; |
78 | 78 |
79 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; | 79 base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); | 81 DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace nacl | 84 } // namespace nacl |
85 | 85 |
86 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ | 86 #endif // COMPONENTS_NACL_BROWSER_NACL_HOST_MESSAGE_FILTER_H_ |
OLD | NEW |