Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: components/nacl/browser/nacl_host_message_filter.h

Issue 165663002: Remove some PlatformFile uses from NaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add empty line Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_file_host.cc ('k') | components/nacl/browser/nacl_host_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698