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

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

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 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/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 28 matching lines...) Expand all
39 // renderer. 39 // renderer.
40 class WebPluginProxy : public WebPlugin, 40 class WebPluginProxy : public WebPlugin,
41 public IPC::Sender { 41 public IPC::Sender {
42 public: 42 public:
43 // Creates a new proxy for WebPlugin, using the given sender to send the 43 // Creates a new proxy for WebPlugin, using the given sender to send the
44 // marshalled WebPlugin calls. 44 // marshalled WebPlugin calls.
45 WebPluginProxy(PluginChannel* channel, 45 WebPluginProxy(PluginChannel* channel,
46 int route_id, 46 int route_id,
47 const GURL& page_url, 47 const GURL& page_url,
48 int host_render_view_routing_id); 48 int host_render_view_routing_id);
49 virtual ~WebPluginProxy(); 49 ~WebPluginProxy() override;
50 50
51 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } 51 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; }
52 52
53 // WebPlugin overrides 53 // WebPlugin overrides
54 virtual void SetWindow(gfx::PluginWindowHandle window) override; 54 void SetWindow(gfx::PluginWindowHandle window) override;
55 virtual void SetAcceptsInputEvents(bool accepts) override; 55 void SetAcceptsInputEvents(bool accepts) override;
56 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) override; 56 void WillDestroyWindow(gfx::PluginWindowHandle window) override;
57 virtual void CancelResource(unsigned long id) override; 57 void CancelResource(unsigned long id) override;
58 virtual void Invalidate() override; 58 void Invalidate() override;
59 virtual void InvalidateRect(const gfx::Rect& rect) override; 59 void InvalidateRect(const gfx::Rect& rect) override;
60 virtual NPObject* GetWindowScriptNPObject() override; 60 NPObject* GetWindowScriptNPObject() override;
61 virtual NPObject* GetPluginElement() override; 61 NPObject* GetPluginElement() override;
62 virtual bool FindProxyForUrl(const GURL& url, 62 bool FindProxyForUrl(const GURL& url, std::string* proxy_list) override;
63 std::string* proxy_list) override; 63 void SetCookie(const GURL& url,
64 virtual void SetCookie(const GURL& url, 64 const GURL& first_party_for_cookies,
65 const GURL& first_party_for_cookies, 65 const std::string& cookie) override;
66 const std::string& cookie) override; 66 std::string GetCookies(const GURL& url,
67 virtual std::string GetCookies(const GURL& url, 67 const GURL& first_party_for_cookies) override;
68 const GURL& first_party_for_cookies) override; 68 void HandleURLRequest(const char* url,
69 virtual void HandleURLRequest(const char* url, 69 const char* method,
70 const char* method, 70 const char* target,
71 const char* target, 71 const char* buf,
72 const char* buf, 72 unsigned int len,
73 unsigned int len, 73 int notify_id,
74 int notify_id, 74 bool popups_allowed,
75 bool popups_allowed, 75 bool notify_redirects) override;
76 bool notify_redirects) override;
77 void UpdateGeometry(const gfx::Rect& window_rect, 76 void UpdateGeometry(const gfx::Rect& window_rect,
78 const gfx::Rect& clip_rect, 77 const gfx::Rect& clip_rect,
79 const TransportDIB::Handle& windowless_buffer0, 78 const TransportDIB::Handle& windowless_buffer0,
80 const TransportDIB::Handle& windowless_buffer1, 79 const TransportDIB::Handle& windowless_buffer1,
81 int windowless_buffer_index); 80 int windowless_buffer_index);
82 virtual void CancelDocumentLoad() override; 81 void CancelDocumentLoad() override;
83 virtual void InitiateHTTPRangeRequest( 82 void InitiateHTTPRangeRequest(const char* url,
84 const char* url, const char* range_info, int range_request_id) override; 83 const char* range_info,
85 virtual void DidStartLoading() override; 84 int range_request_id) override;
86 virtual void DidStopLoading() override; 85 void DidStartLoading() override;
87 virtual void SetDeferResourceLoading(unsigned long resource_id, 86 void DidStopLoading() override;
88 bool defer) override; 87 void SetDeferResourceLoading(unsigned long resource_id, bool defer) override;
89 virtual bool IsOffTheRecord() override; 88 bool IsOffTheRecord() override;
90 virtual void ResourceClientDeleted( 89 void ResourceClientDeleted(WebPluginResourceClient* resource_client) override;
91 WebPluginResourceClient* resource_client) override; 90 void URLRedirectResponse(bool allow, int resource_id) override;
92 virtual void URLRedirectResponse(bool allow, int resource_id) override; 91 bool CheckIfRunInsecureContent(const GURL& url) override;
93 virtual bool CheckIfRunInsecureContent(const GURL& url) override;
94 #if defined(OS_WIN) 92 #if defined(OS_WIN)
95 void SetWindowlessData(HANDLE pump_messages_event, 93 void SetWindowlessData(HANDLE pump_messages_event,
96 gfx::NativeViewId dummy_activation_window); 94 gfx::NativeViewId dummy_activation_window);
97 #endif 95 #endif
98 #if defined(OS_MACOSX) 96 #if defined(OS_MACOSX)
99 virtual void FocusChanged(bool focused) override; 97 void FocusChanged(bool focused) override;
100 virtual void StartIme() override; 98 void StartIme() override;
101 virtual WebPluginAcceleratedSurface* 99 WebPluginAcceleratedSurface* GetAcceleratedSurface(
102 GetAcceleratedSurface(gfx::GpuPreference gpu_preference) override; 100 gfx::GpuPreference gpu_preference) override;
103 virtual void AcceleratedPluginEnabledRendering() override; 101 void AcceleratedPluginEnabledRendering() override;
104 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, 102 void AcceleratedPluginAllocatedIOSurface(int32 width,
105 int32 height, 103 int32 height,
106 uint32 surface_id) override; 104 uint32 surface_id) override;
107 virtual void AcceleratedPluginSwappedIOSurface() override; 105 void AcceleratedPluginSwappedIOSurface() override;
108 #endif 106 #endif
109 107
110 // IPC::Sender implementation. 108 // IPC::Sender implementation.
111 virtual bool Send(IPC::Message* msg) override; 109 bool Send(IPC::Message* msg) override;
112 110
113 // class-specific methods 111 // class-specific methods
114 112
115 // Returns a WebPluginResourceClient object given its id, or NULL if no 113 // Returns a WebPluginResourceClient object given its id, or NULL if no
116 // object with that id exists. 114 // object with that id exists.
117 WebPluginResourceClient* GetResourceClient(int id); 115 WebPluginResourceClient* GetResourceClient(int id);
118 116
119 // Returns the id of the renderer that contains this plugin. 117 // Returns the id of the renderer that contains this plugin.
120 int GetRendererId(); 118 int GetRendererId();
121 119
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 210
213 // Contains the routing id of the host render view. 211 // Contains the routing id of the host render view.
214 int host_render_view_routing_id_; 212 int host_render_view_routing_id_;
215 213
216 base::WeakPtrFactory<WebPluginProxy> weak_factory_; 214 base::WeakPtrFactory<WebPluginProxy> weak_factory_;
217 }; 215 };
218 216
219 } // namespace content 217 } // namespace content
220 218
221 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ 219 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_delegate_stub.h ('k') | content/ppapi_plugin/broker_process_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698