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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 15004024: Only use skia::RefPtr for refcounting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment changes, SharePtr Created 7 years, 7 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 | « ui/gfx/render_text.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.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) 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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 #include "ppapi/c/ppp_mouse_lock.h" 37 #include "ppapi/c/ppp_mouse_lock.h"
38 #include "ppapi/c/private/ppb_content_decryptor_private.h" 38 #include "ppapi/c/private/ppb_content_decryptor_private.h"
39 #include "ppapi/c/private/ppb_nacl_private.h" 39 #include "ppapi/c/private/ppb_nacl_private.h"
40 #include "ppapi/c/private/ppp_instance_private.h" 40 #include "ppapi/c/private/ppp_instance_private.h"
41 #include "ppapi/shared_impl/ppb_instance_shared.h" 41 #include "ppapi/shared_impl/ppb_instance_shared.h"
42 #include "ppapi/shared_impl/ppb_view_shared.h" 42 #include "ppapi/shared_impl/ppb_view_shared.h"
43 #include "ppapi/shared_impl/singleton_resource_id.h" 43 #include "ppapi/shared_impl/singleton_resource_id.h"
44 #include "ppapi/shared_impl/tracked_callback.h" 44 #include "ppapi/shared_impl/tracked_callback.h"
45 #include "ppapi/thunk/ppb_gamepad_api.h" 45 #include "ppapi/thunk/ppb_gamepad_api.h"
46 #include "ppapi/thunk/resource_creation_api.h" 46 #include "ppapi/thunk/resource_creation_api.h"
47 #include "skia/ext/refptr.h"
47 #include "third_party/WebKit/Source/Platform/chromium/public/WebCanvas.h" 48 #include "third_party/WebKit/Source/Platform/chromium/public/WebCanvas.h"
48 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 49 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
49 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient. h" 50 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient. h"
50 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" 51 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h"
51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserGestureToken.h " 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserGestureToken.h "
53 #include "third_party/skia/include/core/SkRefCnt.h"
54 #include "ui/base/ime/text_input_type.h" 54 #include "ui/base/ime/text_input_type.h"
55 #include "ui/gfx/rect.h" 55 #include "ui/gfx/rect.h"
56 #include "webkit/plugins/ppapi/plugin_delegate.h" 56 #include "webkit/plugins/ppapi/plugin_delegate.h"
57 #include "webkit/plugins/ppapi/ppp_pdf.h" 57 #include "webkit/plugins/ppapi/ppp_pdf.h"
58 #include "webkit/plugins/webkit_plugins_export.h" 58 #include "webkit/plugins/webkit_plugins_export.h"
59 59
60 struct PP_Point; 60 struct PP_Point;
61 61
62 class SkBitmap; 62 class SkBitmap;
63 class TransportDIB; 63 class TransportDIB;
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 #endif // defined(OS_MACOSX) 726 #endif // defined(OS_MACOSX)
727 // Always when printing to PDF on Linux and when printing for preview on Mac 727 // Always when printing to PDF on Linux and when printing for preview on Mac
728 // and Win, the entire document goes into one metafile. However, when users 728 // and Win, the entire document goes into one metafile. However, when users
729 // print only a subset of all the pages, it is impossible to know if a call 729 // print only a subset of all the pages, it is impossible to know if a call
730 // to PrintPage() is the last call. Thus in PrintPage(), just store the page 730 // to PrintPage() is the last call. Thus in PrintPage(), just store the page
731 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_| 731 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_|
732 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible 732 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible
733 // to generate the entire PDF given the variables below: 733 // to generate the entire PDF given the variables below:
734 // 734 //
735 // The most recently used WebCanvas, guaranteed to be valid. 735 // The most recently used WebCanvas, guaranteed to be valid.
736 SkRefPtr<WebKit::WebCanvas> canvas_; 736 skia::RefPtr<WebKit::WebCanvas> canvas_;
737 // An array of page ranges. 737 // An array of page ranges.
738 std::vector<PP_PrintPageNumberRange_Dev> ranges_; 738 std::vector<PP_PrintPageNumberRange_Dev> ranges_;
739 739
740 scoped_refptr< ::ppapi::Resource> gamepad_impl_; 740 scoped_refptr< ::ppapi::Resource> gamepad_impl_;
741 741
742 // The plugin print interface. 742 // The plugin print interface.
743 const PPP_Printing_Dev* plugin_print_interface_; 743 const PPP_Printing_Dev* plugin_print_interface_;
744 744
745 // The plugin 3D interface. 745 // The plugin 3D interface.
746 const PPP_Graphics3D* plugin_graphics_3d_interface_; 746 const PPP_Graphics3D* plugin_graphics_3d_interface_;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; 835 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_;
836 836
837 friend class PpapiPluginInstanceTest; 837 friend class PpapiPluginInstanceTest;
838 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 838 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
839 }; 839 };
840 840
841 } // namespace ppapi 841 } // namespace ppapi
842 } // namespace webkit 842 } // namespace webkit
843 843
844 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 844 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698