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_PNACL_HOST_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_PNACL_HOST_H_ |
6 #define COMPONENTS_NACL_BROWSER_PNACL_HOST_H_ | 6 #define COMPONENTS_NACL_BROWSER_PNACL_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 friend class pnacl::PnaclHostTest; | 109 friend class pnacl::PnaclHostTest; |
110 friend class pnacl::PnaclHostTestDisk; | 110 friend class pnacl::PnaclHostTestDisk; |
111 enum CacheState { | 111 enum CacheState { |
112 CacheUninitialized, | 112 CacheUninitialized, |
113 CacheInitializing, | 113 CacheInitializing, |
114 CacheReady | 114 CacheReady |
115 }; | 115 }; |
116 class PendingTranslation { | 116 class PendingTranslation { |
117 public: | 117 public: |
118 PendingTranslation(); | 118 PendingTranslation(); |
| 119 PendingTranslation(const PendingTranslation& other); |
119 ~PendingTranslation(); | 120 ~PendingTranslation(); |
120 base::ProcessHandle process_handle; | 121 base::ProcessHandle process_handle; |
121 int render_view_id; | 122 int render_view_id; |
122 base::File* nexe_fd; | 123 base::File* nexe_fd; |
123 bool got_nexe_fd; | 124 bool got_nexe_fd; |
124 bool got_cache_reply; | 125 bool got_cache_reply; |
125 bool got_cache_hit; | 126 bool got_cache_hit; |
126 bool is_incognito; | 127 bool is_incognito; |
127 scoped_refptr<net::DrainableIOBuffer> nexe_read_buffer; | 128 scoped_refptr<net::DrainableIOBuffer> nexe_read_buffer; |
128 NexeFdCallback callback; | 129 NexeFdCallback callback; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 scoped_ptr<pnacl::PnaclTranslationCache> disk_cache_; | 177 scoped_ptr<pnacl::PnaclTranslationCache> disk_cache_; |
177 PendingTranslationMap pending_translations_; | 178 PendingTranslationMap pending_translations_; |
178 base::ThreadChecker thread_checker_; | 179 base::ThreadChecker thread_checker_; |
179 base::WeakPtrFactory<PnaclHost> weak_factory_; | 180 base::WeakPtrFactory<PnaclHost> weak_factory_; |
180 DISALLOW_COPY_AND_ASSIGN(PnaclHost); | 181 DISALLOW_COPY_AND_ASSIGN(PnaclHost); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace pnacl | 184 } // namespace pnacl |
184 | 185 |
185 #endif // COMPONENTS_NACL_BROWSER_PNACL_HOST_H_ | 186 #endif // COMPONENTS_NACL_BROWSER_PNACL_HOST_H_ |
OLD | NEW |