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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.h

Issue 46433002: Support using TrackedCallbacks as hints to determine the handling thread of resource reply messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 PP_Instance instance, 107 PP_Instance instance,
108 const PP_BrowserFont_Trusted_Description& desc, 108 const PP_BrowserFont_Trusted_Description& desc,
109 const ppapi::Preferences& prefs) OVERRIDE; 109 const ppapi::Preferences& prefs) OVERRIDE;
110 110
111 // Message handlers. 111 // Message handlers.
112 void OnLoadPlugin(const base::FilePath& path, 112 void OnLoadPlugin(const base::FilePath& path,
113 const ppapi::PpapiPermissions& permissions); 113 const ppapi::PpapiPermissions& permissions);
114 void OnCreateChannel(base::ProcessId renderer_pid, 114 void OnCreateChannel(base::ProcessId renderer_pid,
115 int renderer_child_id, 115 int renderer_child_id,
116 bool incognito); 116 bool incognito);
117 void OnResourceReply(
118 const ppapi::proxy::ResourceMessageReplyParams& reply_params,
119 const IPC::Message& nested_msg);
120 void OnSetNetworkState(bool online); 117 void OnSetNetworkState(bool online);
121 void OnCrash(); 118 void OnCrash();
122 void OnHang(); 119 void OnHang();
123 120
124 // Sets up the channel to the given renderer. On success, returns true and 121 // Sets up the channel to the given renderer. On success, returns true and
125 // fills the given ChannelHandle with the information from the new channel. 122 // fills the given ChannelHandle with the information from the new channel.
126 bool SetupRendererChannel(base::ProcessId renderer_pid, 123 bool SetupRendererChannel(base::ProcessId renderer_pid,
127 int renderer_child_id, 124 int renderer_child_id,
128 bool incognito, 125 bool incognito,
129 IPC::ChannelHandle* handle); 126 IPC::ChannelHandle* handle);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #endif 171 #endif
175 172
176 DispatcherMessageListener dispatcher_message_listener_; 173 DispatcherMessageListener dispatcher_message_listener_;
177 174
178 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); 175 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
179 }; 176 };
180 177
181 } // namespace content 178 } // namespace content
182 179
183 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 180 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_thread.cc » ('j') | content/ppapi_plugin/ppapi_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698