OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A class that receives IPC messages from an NPObjectProxy and calls the real | 5 // A class that receives IPC messages from an NPObjectProxy and calls the real |
6 // NPObject. | 6 // NPObject. |
7 | 7 |
8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_ | 8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_ |
9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_ | 9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
15 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
16 #include "chrome/plugin/npobject_base.h" | 16 #include "chrome/plugin/npobject_base.h" |
17 #include "gfx/native_widget_types.h" | |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 19 #include "ui/gfx/native_widget_types.h" |
20 | 20 |
21 class PluginChannelBase; | 21 class PluginChannelBase; |
22 struct NPIdentifier_Param; | 22 struct NPIdentifier_Param; |
23 struct NPObject; | 23 struct NPObject; |
24 struct NPVariant_Param; | 24 struct NPVariant_Param; |
25 | 25 |
26 // This wraps an NPObject and converts IPC messages from NPObjectProxy to calls | 26 // This wraps an NPObject and converts IPC messages from NPObjectProxy to calls |
27 // to the object. The results are marshalled back. See npobject_proxy.h for | 27 // to the object. The results are marshalled back. See npobject_proxy.h for |
28 // more information. | 28 // more information. |
29 class NPObjectStub : public IPC::Channel::Listener, | 29 class NPObjectStub : public IPC::Channel::Listener, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 NPObject* npobject_; | 86 NPObject* npobject_; |
87 scoped_refptr<PluginChannelBase> channel_; | 87 scoped_refptr<PluginChannelBase> channel_; |
88 int route_id_; | 88 int route_id_; |
89 gfx::NativeViewId containing_window_; | 89 gfx::NativeViewId containing_window_; |
90 | 90 |
91 // The url of the main frame hosting the plugin. | 91 // The url of the main frame hosting the plugin. |
92 GURL page_url_; | 92 GURL page_url_; |
93 }; | 93 }; |
94 | 94 |
95 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ | 95 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ |
OLD | NEW |