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

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
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 PP_Instance instance, 90 PP_Instance instance,
91 const PP_BrowserFont_Trusted_Description& desc, 91 const PP_BrowserFont_Trusted_Description& desc,
92 const ppapi::Preferences& prefs) OVERRIDE; 92 const ppapi::Preferences& prefs) OVERRIDE;
93 93
94 // Message handlers. 94 // Message handlers.
95 void OnLoadPlugin(const base::FilePath& path, 95 void OnLoadPlugin(const base::FilePath& path,
96 const ppapi::PpapiPermissions& permissions); 96 const ppapi::PpapiPermissions& permissions);
97 void OnCreateChannel(base::ProcessId renderer_pid, 97 void OnCreateChannel(base::ProcessId renderer_pid,
98 int renderer_child_id, 98 int renderer_child_id,
99 bool incognito); 99 bool incognito);
100 void OnResourceReply(
101 const ppapi::proxy::ResourceMessageReplyParams& reply_params,
102 const IPC::Message& nested_msg);
103 void OnSetNetworkState(bool online); 100 void OnSetNetworkState(bool online);
104 void OnCrash(); 101 void OnCrash();
105 void OnHang(); 102 void OnHang();
106 103
107 // Sets up the channel to the given renderer. On success, returns true and 104 // Sets up the channel to the given renderer. On success, returns true and
108 // fills the given ChannelHandle with the information from the new channel. 105 // fills the given ChannelHandle with the information from the new channel.
109 bool SetupRendererChannel(base::ProcessId renderer_pid, 106 bool SetupRendererChannel(base::ProcessId renderer_pid,
110 int renderer_child_id, 107 int renderer_child_id,
111 bool incognito, 108 bool incognito,
112 IPC::ChannelHandle* handle); 109 IPC::ChannelHandle* handle);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Caches the handle to the peer process if this is a broker. 152 // Caches the handle to the peer process if this is a broker.
156 base::win::ScopedHandle peer_handle_; 153 base::win::ScopedHandle peer_handle_;
157 #endif 154 #endif
158 155
159 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); 156 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
160 }; 157 };
161 158
162 } // namespace content 159 } // namespace content
163 160
164 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 161 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698