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

Side by Side Diff: content/renderer/npapi/plugin_channel_host.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 #include "content/renderer/npapi/plugin_channel_host.h" 5 #include "content/renderer/npapi/plugin_channel_host.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/child/child_process.h" 9 #include "content/child/child_process.h"
10 #include "content/child/npapi/npobject_base.h" 10 #include "content/child/npapi/npobject_base.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 IPC_BEGIN_MESSAGE_MAP(PluginChannelHost, message) 120 IPC_BEGIN_MESSAGE_MAP(PluginChannelHost, message)
121 IPC_MESSAGE_HANDLER(PluginHostMsg_SetException, OnSetException) 121 IPC_MESSAGE_HANDLER(PluginHostMsg_SetException, OnSetException)
122 IPC_MESSAGE_HANDLER(PluginHostMsg_PluginShuttingDown, OnPluginShuttingDown) 122 IPC_MESSAGE_HANDLER(PluginHostMsg_PluginShuttingDown, OnPluginShuttingDown)
123 IPC_MESSAGE_UNHANDLED(handled = false) 123 IPC_MESSAGE_UNHANDLED(handled = false)
124 IPC_END_MESSAGE_MAP() 124 IPC_END_MESSAGE_MAP()
125 DCHECK(handled); 125 DCHECK(handled);
126 return handled; 126 return handled;
127 } 127 }
128 128
129 void PluginChannelHost::OnSetException(const std::string& message) { 129 void PluginChannelHost::OnSetException(const std::string& message) {
130 WebKit::WebBindings::setException(NULL, message.c_str()); 130 blink::WebBindings::setException(NULL, message.c_str());
131 } 131 }
132 132
133 void PluginChannelHost::OnPluginShuttingDown() { 133 void PluginChannelHost::OnPluginShuttingDown() {
134 expecting_shutdown_ = true; 134 expecting_shutdown_ = true;
135 } 135 }
136 136
137 bool PluginChannelHost::Send(IPC::Message* msg) { 137 bool PluginChannelHost::Send(IPC::Message* msg) {
138 if (msg->is_sync()) { 138 if (msg->is_sync()) {
139 base::TimeTicks start_time(base::TimeTicks::Now()); 139 base::TimeTicks start_time(base::TimeTicks::Now());
140 bool result = NPChannelBase::Send(msg); 140 bool result = NPChannelBase::Send(msg);
(...skipping 19 matching lines...) Expand all
160 160
161 for (ProxyMap::iterator iter = proxies_.begin(); 161 for (ProxyMap::iterator iter = proxies_.begin();
162 iter != proxies_.end(); iter++) { 162 iter != proxies_.end(); iter++) {
163 iter->second->OnChannelError(); 163 iter->second->OnChannelError();
164 } 164 }
165 165
166 proxies_.clear(); 166 proxies_.clear();
167 } 167 }
168 168
169 } // namespace content 169 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/notification_provider.cc ('k') | content/renderer/npapi/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698