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

Side by Side Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 7648033: Add means for running some tests only o-o-p, add messaging o-o-p test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated a copyright header Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/proxy/ppb_testing_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/proxy/plugin_dispatcher.h" 5 #include "ppapi/proxy/plugin_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 channel()->AddFilter( 102 channel()->AddFilter(
103 new PluginMessageFilter(delegate->GetGloballySeenInstanceIDSet())); 103 new PluginMessageFilter(delegate->GetGloballySeenInstanceIDSet()));
104 return true; 104 return true;
105 } 105 }
106 106
107 bool PluginDispatcher::IsPlugin() const { 107 bool PluginDispatcher::IsPlugin() const {
108 return true; 108 return true;
109 } 109 }
110 110
111 bool PluginDispatcher::Send(IPC::Message* msg) { 111 bool PluginDispatcher::Send(IPC::Message* msg) {
112 DCHECK(MessageLoop::current());
113 TRACE_EVENT2("ppapi proxy", "PluginDispatcher::Send", 112 TRACE_EVENT2("ppapi proxy", "PluginDispatcher::Send",
114 "Class", IPC_MESSAGE_ID_CLASS(msg->type()), 113 "Class", IPC_MESSAGE_ID_CLASS(msg->type()),
115 "Line", IPC_MESSAGE_ID_LINE(msg->type())); 114 "Line", IPC_MESSAGE_ID_LINE(msg->type()));
116 // We always want plugin->renderer messages to arrive in-order. If some sync 115 // We always want plugin->renderer messages to arrive in-order. If some sync
117 // and some async messages are send in response to a synchronous 116 // and some async messages are send in response to a synchronous
118 // renderer->plugin call, the sync reply will be processed before the async 117 // renderer->plugin call, the sync reply will be processed before the async
119 // reply, and everything will be confused. 118 // reply, and everything will be confused.
120 // 119 //
121 // Allowing all async messages to unblock the renderer means more reentrancy 120 // Allowing all async messages to unblock the renderer means more reentrancy
122 // there but gives correct ordering. 121 // there but gives correct ordering.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // once they're set. The user will have to restart to get new font prefs 306 // once they're set. The user will have to restart to get new font prefs
308 // propogated to plugins. 307 // propogated to plugins.
309 if (!received_preferences_) { 308 if (!received_preferences_) {
310 received_preferences_ = true; 309 received_preferences_ = true;
311 preferences_ = prefs; 310 preferences_ = prefs;
312 } 311 }
313 } 312 }
314 313
315 } // namespace proxy 314 } // namespace proxy
316 } // namespace ppapi 315 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698