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 CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ |
6 #define CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ | 6 #define CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/message_loop/message_loop_proxy.h" | |
12 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
13 #include "ipc/message_filter.h" | 12 #include "ipc/message_filter.h" |
14 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
15 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
16 #include "ppapi/c/private/pp_file_handle.h" | 15 #include "ppapi/c/private/pp_file_handle.h" |
17 | 16 |
| 17 namespace base { |
| 18 class SingleThreadTaskRunner; |
| 19 } |
| 20 |
18 namespace nacl { | 21 namespace nacl { |
19 struct PnaclCacheInfo; | 22 struct PnaclCacheInfo; |
20 } | 23 } |
21 | 24 |
22 // A class to keep track of requests made to the browser for resources that the | 25 // A class to keep track of requests made to the browser for resources that the |
23 // PNaCl translator needs (e.g. descriptors for the translator nexes, temp | 26 // PNaCl translator needs (e.g. descriptors for the translator nexes, temp |
24 // files, and cached translations). | 27 // files, and cached translations). |
25 | 28 |
26 // "Resource" might not be the best name for the various things that pnacl | 29 // "Resource" might not be the best name for the various things that pnacl |
27 // needs from the browser since "Resource" is a Pepper thing... | 30 // needs from the browser since "Resource" is a Pepper thing... |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 68 |
66 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
67 | 70 |
68 // Should be accessed on the io thread. | 71 // Should be accessed on the io thread. |
69 IPC::Sender* sender_; | 72 IPC::Sender* sender_; |
70 CacheRequestInfoMap pending_cache_requests_; | 73 CacheRequestInfoMap pending_cache_requests_; |
71 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationResourceHost); | 74 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationResourceHost); |
72 }; | 75 }; |
73 | 76 |
74 #endif // CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ | 77 #endif // CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_ |
OLD | NEW |