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 proxy for NPObject that sends all calls to the object to an NPObjectStub | 5 // A proxy for NPObject that sends all calls to the object to an NPObjectStub |
6 // running in a different process. | 6 // running in a different process. |
7 | 7 |
8 #ifndef CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 8 #ifndef CONTENT_PLUGIN_NPOBJECT_PROXY_H_ |
9 #define CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 9 #define CONTENT_PLUGIN_NPOBJECT_PROXY_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "chrome/plugin/npobject_base.h" | 13 #include "content/plugin/npobject_base.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "ipc/ipc_channel.h" | 15 #include "ipc/ipc_channel.h" |
16 #include "third_party/npapi/bindings/npruntime.h" | 16 #include "third_party/npapi/bindings/npruntime.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 | 18 |
19 class PluginChannelBase; | 19 class PluginChannelBase; |
20 struct NPObject; | 20 struct NPObject; |
21 | 21 |
22 // When running a plugin in a different process from the renderer, we need to | 22 // When running a plugin in a different process from the renderer, we need to |
23 // proxy calls to NPObjects across process boundaries. This happens both ways, | 23 // proxy calls to NPObjects across process boundaries. This happens both ways, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 static NPClass npclass_proxy_; | 113 static NPClass npclass_proxy_; |
114 | 114 |
115 scoped_refptr<PluginChannelBase> channel_; | 115 scoped_refptr<PluginChannelBase> channel_; |
116 int route_id_; | 116 int route_id_; |
117 gfx::NativeViewId containing_window_; | 117 gfx::NativeViewId containing_window_; |
118 | 118 |
119 // The url of the main frame hosting the plugin. | 119 // The url of the main frame hosting the plugin. |
120 GURL page_url_; | 120 GURL page_url_; |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 123 #endif // CONTENT_PLUGIN_NPOBJECT_PROXY_H_ |
OLD | NEW |