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

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

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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
« no previous file with comments | « content/renderer/npapi/plugin_channel_host.cc ('k') | content/renderer/render_thread_impl.h » ('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 #include "content/renderer/npapi/webplugin_delegate_proxy.h" 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 // Return true so that the plugin widget is created and we can paint the 316 // Return true so that the plugin widget is created and we can paint the
317 // crashed plugin there. 317 // crashed plugin there.
318 return true; 318 return true;
319 } 319 }
320 LOG(ERROR) << "Plugin couldn't be found"; 320 LOG(ERROR) << "Plugin couldn't be found";
321 return false; 321 return false;
322 } 322 }
323 323
324 channel_host = PluginChannelHost::GetPluginChannelHost( 324 channel_host = PluginChannelHost::GetPluginChannelHost(
325 channel_handle, ChildProcess::current()->io_task_runner()); 325 channel_handle, ChildProcess::current()->io_task_runner(),
326 RenderThreadImpl::current()->GetAttachmentBroker());
326 if (!channel_host.get()) { 327 if (!channel_host.get()) {
327 LOG(ERROR) << "Couldn't get PluginChannelHost"; 328 LOG(ERROR) << "Couldn't get PluginChannelHost";
328 continue; 329 continue;
329 } 330 }
330 #if defined(OS_MACOSX) 331 #if defined(OS_MACOSX)
331 track_nested_removes.reset(); 332 track_nested_removes.reset();
332 #endif 333 #endif
333 334
334 { 335 {
335 // TODO(bauerb): Debugging for http://crbug.com/141055. 336 // TODO(bauerb): Debugging for http://crbug.com/141055.
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 1229
1229 plugin_->URLRedirectResponse(allow, resource_id); 1230 plugin_->URLRedirectResponse(allow, resource_id);
1230 } 1231 }
1231 1232
1232 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, 1233 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url,
1233 bool* result) { 1234 bool* result) {
1234 *result = plugin_->CheckIfRunInsecureContent(url); 1235 *result = plugin_->CheckIfRunInsecureContent(url);
1235 } 1236 }
1236 1237
1237 } // namespace content 1238 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/npapi/plugin_channel_host.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698