OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |