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

Side by Side Diff: content/renderer/npapi/webplugin_delegate_proxy.h

Issue 670683003: Standardize usage of virtual/override/final in content/renderer/ (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_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public IPC::Listener, 49 public IPC::Listener,
50 public IPC::Sender, 50 public IPC::Sender,
51 public base::SupportsWeakPtr<WebPluginDelegateProxy> { 51 public base::SupportsWeakPtr<WebPluginDelegateProxy> {
52 public: 52 public:
53 WebPluginDelegateProxy(WebPluginImpl* plugin, 53 WebPluginDelegateProxy(WebPluginImpl* plugin,
54 const std::string& mime_type, 54 const std::string& mime_type,
55 const base::WeakPtr<RenderViewImpl>& render_view, 55 const base::WeakPtr<RenderViewImpl>& render_view,
56 RenderFrameImpl* render_frame); 56 RenderFrameImpl* render_frame);
57 57
58 // WebPluginDelegate implementation: 58 // WebPluginDelegate implementation:
59 virtual void PluginDestroyed() override; 59 void PluginDestroyed() override;
60 virtual bool Initialize(const GURL& url, 60 bool Initialize(const GURL& url,
61 const std::vector<std::string>& arg_names, 61 const std::vector<std::string>& arg_names,
62 const std::vector<std::string>& arg_values, 62 const std::vector<std::string>& arg_values,
63 bool load_manually) override; 63 bool load_manually) override;
64 virtual void UpdateGeometry(const gfx::Rect& window_rect, 64 void UpdateGeometry(const gfx::Rect& window_rect,
65 const gfx::Rect& clip_rect) override; 65 const gfx::Rect& clip_rect) override;
66 virtual void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; 66 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override;
67 virtual NPObject* GetPluginScriptableObject() override; 67 NPObject* GetPluginScriptableObject() override;
68 virtual struct _NPP* GetPluginNPP() override; 68 struct _NPP* GetPluginNPP() override;
69 virtual bool GetFormValue(base::string16* value) override; 69 bool GetFormValue(base::string16* value) override;
70 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason, 70 void DidFinishLoadWithReason(const GURL& url,
71 int notify_id) override; 71 NPReason reason,
72 virtual void SetFocus(bool focused) override; 72 int notify_id) override;
73 virtual bool HandleInputEvent(const blink::WebInputEvent& event, 73 void SetFocus(bool focused) override;
74 WebCursor::CursorInfo* cursor) override; 74 bool HandleInputEvent(const blink::WebInputEvent& event,
75 virtual int GetProcessId() override; 75 WebCursor::CursorInfo* cursor) override;
76 int GetProcessId() override;
76 77
77 // Informs the plugin that its containing content view has gained or lost 78 // Informs the plugin that its containing content view has gained or lost
78 // first responder status. 79 // first responder status.
79 virtual void SetContentAreaFocus(bool has_focus); 80 virtual void SetContentAreaFocus(bool has_focus);
80 #if defined(OS_WIN) 81 #if defined(OS_WIN)
81 // Informs the plugin that plugin IME has updated its status. 82 // Informs the plugin that plugin IME has updated its status.
82 virtual void ImeCompositionUpdated( 83 virtual void ImeCompositionUpdated(
83 const base::string16& text, 84 const base::string16& text,
84 const std::vector<int>& clauses, 85 const std::vector<int>& clauses,
85 const std::vector<int>& target, 86 const std::vector<int>& target,
(...skipping 11 matching lines...) Expand all
97 virtual void SetContainerVisibility(bool is_visible); 98 virtual void SetContainerVisibility(bool is_visible);
98 // Informs the plugin that its enclosing window's frame has changed. 99 // Informs the plugin that its enclosing window's frame has changed.
99 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); 100 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame);
100 // Informs the plugin that plugin IME has completed. 101 // Informs the plugin that plugin IME has completed.
101 // If |text| is empty, composition was cancelled. 102 // If |text| is empty, composition was cancelled.
102 virtual void ImeCompositionCompleted(const base::string16& text, 103 virtual void ImeCompositionCompleted(const base::string16& text,
103 int plugin_id); 104 int plugin_id);
104 #endif 105 #endif
105 106
106 // IPC::Listener implementation: 107 // IPC::Listener implementation:
107 virtual bool OnMessageReceived(const IPC::Message& msg) override; 108 bool OnMessageReceived(const IPC::Message& msg) override;
108 virtual void OnChannelError() override; 109 void OnChannelError() override;
109 110
110 // IPC::Sender implementation: 111 // IPC::Sender implementation:
111 virtual bool Send(IPC::Message* msg) override; 112 bool Send(IPC::Message* msg) override;
112 113
113 virtual void SendJavaScriptStream(const GURL& url, 114 void SendJavaScriptStream(const GURL& url,
114 const std::string& result, 115 const std::string& result,
115 bool success, 116 bool success,
116 int notify_id) override; 117 int notify_id) override;
117 118
118 virtual void DidReceiveManualResponse(const GURL& url, 119 void DidReceiveManualResponse(const GURL& url,
119 const std::string& mime_type, 120 const std::string& mime_type,
120 const std::string& headers, 121 const std::string& headers,
121 uint32 expected_length, 122 uint32 expected_length,
122 uint32 last_modified) override; 123 uint32 last_modified) override;
123 virtual void DidReceiveManualData(const char* buffer, int length) override; 124 void DidReceiveManualData(const char* buffer, int length) override;
124 virtual void DidFinishManualLoading() override; 125 void DidFinishManualLoading() override;
125 virtual void DidManualLoadFail() override; 126 void DidManualLoadFail() override;
126 virtual WebPluginResourceClient* CreateResourceClient( 127 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id,
127 unsigned long resource_id, const GURL& url, int notify_id) override; 128 const GURL& url,
128 virtual WebPluginResourceClient* CreateSeekableResourceClient( 129 int notify_id) override;
129 unsigned long resource_id, int range_request_id) override; 130 WebPluginResourceClient* CreateSeekableResourceClient(
130 virtual void FetchURL(unsigned long resource_id, 131 unsigned long resource_id,
131 int notify_id, 132 int range_request_id) override;
132 const GURL& url, 133 void FetchURL(unsigned long resource_id,
133 const GURL& first_party_for_cookies, 134 int notify_id,
134 const std::string& method, 135 const GURL& url,
135 const char* buf, 136 const GURL& first_party_for_cookies,
136 unsigned int len, 137 const std::string& method,
137 const GURL& referrer, 138 const char* buf,
138 bool notify_redirects, 139 unsigned int len,
139 bool is_plugin_src_load, 140 const GURL& referrer,
140 int origin_pid, 141 bool notify_redirects,
141 int render_frame_id, 142 bool is_plugin_src_load,
142 int render_view_id) override; 143 int origin_pid,
144 int render_frame_id,
145 int render_view_id) override;
143 146
144 gfx::PluginWindowHandle GetPluginWindowHandle(); 147 gfx::PluginWindowHandle GetPluginWindowHandle();
145 148
146 protected: 149 protected:
147 friend class base::DeleteHelper<WebPluginDelegateProxy>; 150 friend class base::DeleteHelper<WebPluginDelegateProxy>;
148 virtual ~WebPluginDelegateProxy(); 151 ~WebPluginDelegateProxy() override;
149 152
150 private: 153 private:
151 struct SharedBitmap { 154 struct SharedBitmap {
152 SharedBitmap(); 155 SharedBitmap();
153 ~SharedBitmap(); 156 ~SharedBitmap();
154 157
155 scoped_ptr<TransportDIB> dib; 158 scoped_ptr<TransportDIB> dib;
156 scoped_ptr<SkCanvas> canvas; 159 scoped_ptr<SkCanvas> canvas;
157 }; 160 };
158 161
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 309
307 // The url of the main frame hosting the plugin. 310 // The url of the main frame hosting the plugin.
308 GURL page_url_; 311 GURL page_url_;
309 312
310 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 313 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
311 }; 314 };
312 315
313 } // namespace content 316 } // namespace content
314 317
315 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ 318 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/npapi/plugin_channel_host.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698