Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 3855001: Move scoped_cftyperef from base to base/mac, use the new namespace, and name ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #if defined(USE_X11) 11 #if defined(USE_X11)
12 #include "app/x11_util.h" 12 #include "app/x11_util.h"
13 #endif 13 #endif
14 #include "app/surface/transport_dib.h" 14 #include "app/surface/transport_dib.h"
15 #include "base/hash_tables.h" 15 #include "base/hash_tables.h"
16 #include "base/ref_counted.h" 16 #include "base/ref_counted.h"
17 #if defined(OS_MACOSX) 17 #if defined(OS_MACOSX)
18 #include "base/scoped_cftyperef.h" 18 #include "base/mac/scoped_cftyperef.h"
19 #endif 19 #endif
20 #include "base/scoped_handle.h" 20 #include "base/scoped_handle.h"
21 #include "base/scoped_ptr.h" 21 #include "base/scoped_ptr.h"
22 #include "base/shared_memory.h" 22 #include "base/shared_memory.h"
23 #include "base/timer.h" 23 #include "base/timer.h"
24 #include "chrome/common/chrome_plugin_api.h" 24 #include "chrome/common/chrome_plugin_api.h"
25 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
26 #include "ipc/ipc_message.h" 26 #include "ipc/ipc_message.h"
27 #include "webkit/glue/plugins/webplugin.h" 27 #include "webkit/glue/plugins/webplugin.h"
28 28
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 gfx::NativeViewId containing_window_; 201 gfx::NativeViewId containing_window_;
202 // The url of the main frame hosting the plugin. 202 // The url of the main frame hosting the plugin.
203 GURL page_url_; 203 GURL page_url_;
204 204
205 // Variables used for desynchronized windowless plugin painting. See note in 205 // Variables used for desynchronized windowless plugin painting. See note in
206 // webplugin_delegate_proxy.h for how this works. 206 // webplugin_delegate_proxy.h for how this works.
207 bool transparent_; 207 bool transparent_;
208 #if defined(OS_MACOSX) 208 #if defined(OS_MACOSX)
209 scoped_ptr<TransportDIB> windowless_dib_; 209 scoped_ptr<TransportDIB> windowless_dib_;
210 scoped_ptr<TransportDIB> background_dib_; 210 scoped_ptr<TransportDIB> background_dib_;
211 scoped_cftyperef<CGContextRef> windowless_context_; 211 base::mac::ScopedCFTypeRef<CGContextRef> windowless_context_;
212 scoped_cftyperef<CGContextRef> background_context_; 212 base::mac::ScopedCFTypeRef<CGContextRef> background_context_;
213 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_; 213 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_;
214 #else 214 #else
215 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; 215 scoped_ptr<skia::PlatformCanvas> windowless_canvas_;
216 scoped_ptr<skia::PlatformCanvas> background_canvas_; 216 scoped_ptr<skia::PlatformCanvas> background_canvas_;
217 217
218 #if defined(USE_X11) 218 #if defined(USE_X11)
219 scoped_ptr<TransportDIB> windowless_dib_; 219 scoped_ptr<TransportDIB> windowless_dib_;
220 scoped_ptr<TransportDIB> background_dib_; 220 scoped_ptr<TransportDIB> background_dib_;
221 // If we can use SHM pixmaps for windowless plugin painting or not. 221 // If we can use SHM pixmaps for windowless plugin painting or not.
222 bool use_shm_pixmap_; 222 bool use_shm_pixmap_;
223 // The SHM pixmap for windowless plugin painting. 223 // The SHM pixmap for windowless plugin painting.
224 XID windowless_shm_pixmap_; 224 XID windowless_shm_pixmap_;
225 #endif 225 #endif
226 226
227 #endif 227 #endif
228 228
229 // Contains the routing id of the host render view. 229 // Contains the routing id of the host render view.
230 int host_render_view_routing_id_; 230 int host_render_view_routing_id_;
231 231
232 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 232 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
233 }; 233 };
234 234
235 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ 235 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698