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

Side by Side Diff: components/nacl/renderer/pnacl_translation_resource_host.h

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . Created 4 years, 3 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
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_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_ 5 #ifndef COMPONENTS_NACL_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_
6 #define COMPONENTS_NACL_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_ 6 #define COMPONENTS_NACL_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 protected: 47 protected:
48 ~PnaclTranslationResourceHost() override; 48 ~PnaclTranslationResourceHost() override;
49 49
50 private: 50 private:
51 // Maps the instance with an outstanding cache request to the info 51 // Maps the instance with an outstanding cache request to the info
52 // about that request. 52 // about that request.
53 typedef std::map<PP_Instance, RequestNexeFdCallback> CacheRequestInfoMap; 53 typedef std::map<PP_Instance, RequestNexeFdCallback> CacheRequestInfoMap;
54 54
55 // IPC::MessageFilter implementation. 55 // IPC::MessageFilter implementation.
56 bool OnMessageReceived(const IPC::Message& message) override; 56 bool OnMessageReceived(const IPC::Message& message) override;
57 void OnFilterAdded(IPC::Sender* sender) override; 57 void OnFilterAdded(IPC::Channel* channel) override;
58 void OnFilterRemoved() override; 58 void OnFilterRemoved() override;
59 void OnChannelClosing() override; 59 void OnChannelClosing() override;
60 60
61 void SendRequestNexeFd(int render_view_id, 61 void SendRequestNexeFd(int render_view_id,
62 PP_Instance instance, 62 PP_Instance instance,
63 const nacl::PnaclCacheInfo& cache_info, 63 const nacl::PnaclCacheInfo& cache_info,
64 RequestNexeFdCallback callback); 64 RequestNexeFdCallback callback);
65 void SendReportTranslationFinished(PP_Instance instance, 65 void SendReportTranslationFinished(PP_Instance instance,
66 PP_Bool success); 66 PP_Bool success);
67 void OnNexeTempFileReply(PP_Instance instance, 67 void OnNexeTempFileReply(PP_Instance instance,
68 bool is_hit, 68 bool is_hit,
69 IPC::PlatformFileForTransit file); 69 IPC::PlatformFileForTransit file);
70 void CleanupCacheRequests(); 70 void CleanupCacheRequests();
71 71
72 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 72 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
73 73
74 // Should be accessed on the io thread. 74 // Should be accessed on the io thread.
75 IPC::Sender* sender_; 75 IPC::Sender* sender_;
76 CacheRequestInfoMap pending_cache_requests_; 76 CacheRequestInfoMap pending_cache_requests_;
77 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationResourceHost); 77 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationResourceHost);
78 }; 78 };
79 79
80 #endif // COMPONENTS_NACL_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_ 80 #endif // COMPONENTS_NACL_RENDERER_PNACL_TRANSLATION_RESOURCE_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/webrtc_logging_message_filter.cc ('k') | components/nacl/renderer/pnacl_translation_resource_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698