| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #if defined(OS_MACOSX) | 12 #if defined(OS_MACOSX) |
| 13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 14 #endif | 14 #endif |
| 15 #include "base/memory/scoped_handle.h" | 15 #include "base/memory/scoped_handle.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/shared_memory.h" | 18 #include "base/shared_memory.h" |
| 19 #include "base/timer.h" | 19 #include "base/timer.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "ipc/ipc_message.h" | 21 #include "ipc/ipc_message.h" |
| 22 #include "third_party/skia/include/core/SkRefCnt.h" | 22 #include "third_party/skia/include/core/SkRefCnt.h" |
| 23 #if defined(USE_X11) | 23 #if defined(USE_X11) |
| 24 #include "ui/base/x/x11_util.h" | 24 #include "ui/base/x/x11_util.h" |
| 25 #endif | 25 #endif |
| 26 #include "ui/gl/gpu_preference.h" | 26 #include "ui/gl/gpu_preference.h" |
| 27 #include "ui/surface/transport_dib.h" | 27 #include "ui/surface/transport_dib.h" |
| 28 #include "webkit/plugins/npapi/webplugin.h" | 28 #include "webkit/plugins/npapi/webplugin.h" |
| 29 | 29 |
| 30 class PluginChannel; | |
| 31 | |
| 32 namespace skia { | 30 namespace skia { |
| 33 class PlatformCanvas; | 31 class PlatformCanvas; |
| 34 } | 32 } |
| 35 | 33 |
| 36 namespace webkit { | 34 namespace webkit { |
| 37 namespace npapi { | 35 namespace npapi { |
| 38 class WebPluginDelegateImpl; | 36 class WebPluginDelegateImpl; |
| 39 } | 37 } |
| 40 } | 38 } |
| 41 | 39 |
| 40 namespace content { |
| 41 class PluginChannel; |
| 42 |
| 42 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
| 43 class WebPluginAcceleratedSurfaceProxy; | 44 class WebPluginAcceleratedSurfaceProxy; |
| 44 #endif | 45 #endif |
| 45 | 46 |
| 46 // This is an implementation of WebPlugin that proxies all calls to the | 47 // This is an implementation of WebPlugin that proxies all calls to the |
| 47 // renderer. | 48 // renderer. |
| 48 class WebPluginProxy : public webkit::npapi::WebPlugin { | 49 class WebPluginProxy : public webkit::npapi::WebPlugin { |
| 49 public: | 50 public: |
| 50 // Creates a new proxy for WebPlugin, using the given sender to send the | 51 // Creates a new proxy for WebPlugin, using the given sender to send the |
| 51 // marshalled WebPlugin calls. | 52 // marshalled WebPlugin calls. |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 #endif | 303 #endif |
| 303 | 304 |
| 304 #endif | 305 #endif |
| 305 | 306 |
| 306 // Contains the routing id of the host render view. | 307 // Contains the routing id of the host render view. |
| 307 int host_render_view_routing_id_; | 308 int host_render_view_routing_id_; |
| 308 | 309 |
| 309 base::WeakPtrFactory<WebPluginProxy> weak_factory_; | 310 base::WeakPtrFactory<WebPluginProxy> weak_factory_; |
| 310 }; | 311 }; |
| 311 | 312 |
| 313 } // namespace content |
| 314 |
| 312 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 315 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| OLD | NEW |