OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_CHILD_NPOBJECT_PROXY_H_ | 8 #ifndef CONTENT_CHILD_NPOBJECT_PROXY_H_ |
9 #define CONTENT_CHILD_NPOBJECT_PROXY_H_ | 9 #define CONTENT_CHILD_NPOBJECT_PROXY_H_ |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/child/npobject_base.h" | 12 #include "content/child/npobject_base.h" |
13 #include "googleurl/src/gurl.h" | |
14 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
15 #include "ipc/ipc_sender.h" | 14 #include "ipc/ipc_sender.h" |
16 #include "third_party/npapi/bindings/npruntime.h" | 15 #include "third_party/npapi/bindings/npruntime.h" |
17 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "url/gurl.h" |
18 | 18 |
19 struct NPObject; | 19 struct NPObject; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class NPChannelBase; | 22 class NPChannelBase; |
23 | 23 |
24 // When running a plugin in a different process from the renderer, we need to | 24 // When running a plugin in a different process from the renderer, we need to |
25 // proxy calls to NPObjects across process boundaries. This happens both ways, | 25 // proxy calls to NPObjects across process boundaries. This happens both ways, |
26 // as a plugin can get an NPObject for the window, and a page can get an | 26 // as a plugin can get an NPObject for the window, and a page can get an |
27 // NPObject for the plugin. In the process that interacts with the NPobject we | 27 // NPObject for the plugin. In the process that interacts with the NPobject we |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 int route_id_; | 119 int route_id_; |
120 int render_view_id_; | 120 int render_view_id_; |
121 | 121 |
122 // The url of the main frame hosting the plugin. | 122 // The url of the main frame hosting the plugin. |
123 GURL page_url_; | 123 GURL page_url_; |
124 }; | 124 }; |
125 | 125 |
126 } // namespace content | 126 } // namespace content |
127 | 127 |
128 #endif // CONTENT_CHILD_NPOBJECT_PROXY_H_ | 128 #endif // CONTENT_CHILD_NPOBJECT_PROXY_H_ |
OLD | NEW |