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

Side by Side Diff: webkit/plugins/npapi/webplugin_impl.h

Issue 8539047: Add OVERRIDE to webkit/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NPAPI_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void didReceiveData(const char* data, int data_length); 84 virtual void didReceiveData(const char* data, int data_length);
85 virtual void didFinishLoading(); 85 virtual void didFinishLoading();
86 virtual void didFailLoading(const WebKit::WebURLError& error); 86 virtual void didFailLoading(const WebKit::WebURLError& error);
87 virtual void didFinishLoadingFrameRequest( 87 virtual void didFinishLoadingFrameRequest(
88 const WebKit::WebURL& url, void* notify_data); 88 const WebKit::WebURL& url, void* notify_data);
89 virtual void didFailLoadingFrameRequest( 89 virtual void didFailLoadingFrameRequest(
90 const WebKit::WebURL& url, void* notify_data, 90 const WebKit::WebURL& url, void* notify_data,
91 const WebKit::WebURLError& error); 91 const WebKit::WebURLError& error);
92 92
93 // WebPlugin implementation: 93 // WebPlugin implementation:
94 virtual void SetWindow(gfx::PluginWindowHandle window); 94 virtual void SetWindow(gfx::PluginWindowHandle window) OVERRIDE;
95 virtual void SetAcceptsInputEvents(bool accepts); 95 virtual void SetAcceptsInputEvents(bool accepts) OVERRIDE;
96 virtual void WillDestroyWindow(gfx::PluginWindowHandle window); 96 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) OVERRIDE;
97 #if defined(OS_WIN) 97 #if defined(OS_WIN)
98 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } 98 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { }
99 void ReparentPluginWindow(HWND window, HWND parent) { } 99 void ReparentPluginWindow(HWND window, HWND parent) { }
100 #endif 100 #endif
101 virtual void CancelResource(unsigned long id); 101 virtual void CancelResource(unsigned long id) OVERRIDE;
102 virtual void Invalidate(); 102 virtual void Invalidate() OVERRIDE;
103 virtual void InvalidateRect(const gfx::Rect& rect); 103 virtual void InvalidateRect(const gfx::Rect& rect) OVERRIDE;
104 virtual NPObject* GetWindowScriptNPObject(); 104 virtual NPObject* GetWindowScriptNPObject() OVERRIDE;
105 virtual NPObject* GetPluginElement(); 105 virtual NPObject* GetPluginElement() OVERRIDE;
106 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list); 106 virtual bool FindProxyForUrl(const GURL& url,
107 std::string* proxy_list) OVERRIDE;
107 virtual void SetCookie(const GURL& url, 108 virtual void SetCookie(const GURL& url,
108 const GURL& first_party_for_cookies, 109 const GURL& first_party_for_cookies,
109 const std::string& cookie); 110 const std::string& cookie) OVERRIDE;
110 virtual std::string GetCookies(const GURL& url, 111 virtual std::string GetCookies(const GURL& url,
111 const GURL& first_party_for_cookies); 112 const GURL& first_party_for_cookies) OVERRIDE;
112 virtual void URLRedirectResponse(bool allow, int resource_id); 113 virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE;
113 114
114 // Given a (maybe partial) url, completes using the base url. 115 // Given a (maybe partial) url, completes using the base url.
115 GURL CompleteURL(const char* url); 116 GURL CompleteURL(const char* url);
116 117
117 enum RoutingStatus { 118 enum RoutingStatus {
118 ROUTED, 119 ROUTED,
119 NOT_ROUTED, 120 NOT_ROUTED,
120 INVALID_URL, 121 INVALID_URL,
121 GENERAL_FAILURE 122 GENERAL_FAILURE
122 }; 123 };
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // request given a handle. 197 // request given a handle.
197 void RemoveClient(WebKit::WebURLLoader* loader); 198 void RemoveClient(WebKit::WebURLLoader* loader);
198 199
199 virtual void HandleURLRequest(const char* url, 200 virtual void HandleURLRequest(const char* url,
200 const char *method, 201 const char *method,
201 const char* target, 202 const char* target,
202 const char* buf, 203 const char* buf,
203 unsigned int len, 204 unsigned int len,
204 int notify_id, 205 int notify_id,
205 bool popups_allowed, 206 bool popups_allowed,
206 bool notify_redirects); 207 bool notify_redirects) OVERRIDE;
207 208
208 virtual void CancelDocumentLoad(); 209 virtual void CancelDocumentLoad() OVERRIDE;
209 210
210 virtual void InitiateHTTPRangeRequest( 211 virtual void InitiateHTTPRangeRequest(const char* url,
211 const char* url, const char* range_info, int pending_request_id); 212 const char* range_info,
213 int pending_request_id) OVERRIDE;
212 214
213 virtual void SetDeferResourceLoading(unsigned long resource_id, bool defer); 215 virtual void SetDeferResourceLoading(unsigned long resource_id,
216 bool defer) OVERRIDE;
214 217
215 // Ignore in-process plugins mode for this flag. 218 // Ignore in-process plugins mode for this flag.
216 virtual bool IsOffTheRecord(); 219 virtual bool IsOffTheRecord() OVERRIDE;
217 220
218 // Handles HTTP multipart responses, i.e. responses received with a HTTP 221 // Handles HTTP multipart responses, i.e. responses received with a HTTP
219 // status code of 206. 222 // status code of 206.
220 void HandleHttpMultipartResponse(const WebKit::WebURLResponse& response, 223 void HandleHttpMultipartResponse(const WebKit::WebURLResponse& response,
221 WebPluginResourceClient* client); 224 WebPluginResourceClient* client);
222 225
223 void HandleURLRequestInternal(const char* url, 226 void HandleURLRequestInternal(const char* url,
224 const char* method, 227 const char* method,
225 const char* target, 228 const char* target,
226 const char* buf, 229 const char* buf,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 301
299 base::WeakPtrFactory<WebPluginImpl> weak_factory_; 302 base::WeakPtrFactory<WebPluginImpl> weak_factory_;
300 303
301 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 304 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
302 }; 305 };
303 306
304 } // namespace npapi 307 } // namespace npapi
305 } // namespace webkit 308 } // namespace webkit
306 309
307 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 310 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl.h ('k') | webkit/quota/mock_special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698