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

Side by Side Diff: content/common/npobject_proxy.cc

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/common/npobject_proxy.h ('k') | content/common/npobject_stub.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) 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 "content/common/npobject_proxy.h" 5 #include "content/common/npobject_proxy.h"
6 6
7 #include "content/common/np_channel_base.h" 7 #include "content/common/np_channel_base.h"
8 #include "content/common/npobject_util.h" 8 #include "content/common/npobject_util.h"
9 #include "content/common/plugin_messages.h" 9 #include "content/common/plugin_messages.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 proxy = wrapper->proxy; 44 proxy = wrapper->proxy;
45 } 45 }
46 46
47 return proxy; 47 return proxy;
48 } 48 }
49 49
50 NPObject* NPObjectProxy::GetUnderlyingNPObject() { 50 NPObject* NPObjectProxy::GetUnderlyingNPObject() {
51 return NULL; 51 return NULL;
52 } 52 }
53 53
54 IPC::Channel::Listener* NPObjectProxy::GetChannelListener() { 54 IPC::Listener* NPObjectProxy::GetChannelListener() {
55 return static_cast<IPC::Channel::Listener*>(this); 55 return static_cast<IPC::Listener*>(this);
56 } 56 }
57 57
58 NPObjectProxy::NPObjectProxy( 58 NPObjectProxy::NPObjectProxy(
59 NPChannelBase* channel, 59 NPChannelBase* channel,
60 int route_id, 60 int route_id,
61 gfx::NativeViewId containing_window, 61 gfx::NativeViewId containing_window,
62 const GURL& page_url) 62 const GURL& page_url)
63 : channel_(channel), 63 : channel_(channel),
64 route_id_(route_id), 64 route_id_(route_id),
65 containing_window_(containing_window), 65 containing_window_(containing_window),
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 proxy->Send(msg); 489 proxy->Send(msg);
490 // Send may delete proxy. 490 // Send may delete proxy.
491 proxy = NULL; 491 proxy = NULL;
492 if (!result) 492 if (!result)
493 return false; 493 return false;
494 494
495 CreateNPVariant( 495 CreateNPVariant(
496 result_param, channel.get(), result_var, containing_window, page_url); 496 result_param, channel.get(), result_var, containing_window, page_url);
497 return true; 497 return true;
498 } 498 }
OLDNEW
« no previous file with comments | « content/common/npobject_proxy.h ('k') | content/common/npobject_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698