OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/plugin/webplugin_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "base/mac/scoped_cftyperef.h" | 28 #include "base/mac/scoped_cftyperef.h" |
29 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" | 29 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" |
30 #endif | 30 #endif |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "app/win/win_util.h" | 33 #include "app/win/win_util.h" |
34 #include "gfx/gdi_util.h" | 34 #include "gfx/gdi_util.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #if defined(USE_X11) | 37 #if defined(USE_X11) |
38 #include "app/x11_util_internal.h" | 38 #include "ui/base/x/x11_util_internal.h" |
39 #endif | 39 #endif |
40 | 40 |
41 using WebKit::WebBindings; | 41 using WebKit::WebBindings; |
42 | 42 |
43 using webkit::npapi::WebPluginResourceClient; | 43 using webkit::npapi::WebPluginResourceClient; |
44 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
45 using webkit::npapi::WebPluginAcceleratedSurface; | 45 using webkit::npapi::WebPluginAcceleratedSurface; |
46 #endif | 46 #endif |
47 | 47 |
48 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; | 48 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 } else { | 727 } else { |
728 index++; | 728 index++; |
729 } | 729 } |
730 } | 730 } |
731 } | 731 } |
732 | 732 |
733 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 733 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
734 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 734 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
735 } | 735 } |
736 | 736 |
OLD | NEW |