| OLD | NEW |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual NPObject* GetWindowScriptNPObject() OVERRIDE; | 102 virtual NPObject* GetWindowScriptNPObject() OVERRIDE; |
| 103 virtual NPObject* GetPluginElement() OVERRIDE; | 103 virtual NPObject* GetPluginElement() OVERRIDE; |
| 104 virtual bool FindProxyForUrl(const GURL& url, | 104 virtual bool FindProxyForUrl(const GURL& url, |
| 105 std::string* proxy_list) OVERRIDE; | 105 std::string* proxy_list) OVERRIDE; |
| 106 virtual void SetCookie(const GURL& url, | 106 virtual void SetCookie(const GURL& url, |
| 107 const GURL& first_party_for_cookies, | 107 const GURL& first_party_for_cookies, |
| 108 const std::string& cookie) OVERRIDE; | 108 const std::string& cookie) OVERRIDE; |
| 109 virtual std::string GetCookies(const GURL& url, | 109 virtual std::string GetCookies(const GURL& url, |
| 110 const GURL& first_party_for_cookies) OVERRIDE; | 110 const GURL& first_party_for_cookies) OVERRIDE; |
| 111 virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE; | 111 virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE; |
| 112 #if defined(OS_MACOSX) |
| 113 virtual void AcceleratedPluginEnabledRendering(); |
| 114 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, |
| 115 int32 height, |
| 116 uint32 surface_id); |
| 117 virtual void AcceleratedPluginSwappedIOSurface(); |
| 118 #endif |
| 112 | 119 |
| 113 // Given a (maybe partial) url, completes using the base url. | 120 // Given a (maybe partial) url, completes using the base url. |
| 114 GURL CompleteURL(const char* url); | 121 GURL CompleteURL(const char* url); |
| 115 | 122 |
| 116 enum RoutingStatus { | 123 enum RoutingStatus { |
| 117 ROUTED, | 124 ROUTED, |
| 118 NOT_ROUTED, | 125 NOT_ROUTED, |
| 119 INVALID_URL, | 126 INVALID_URL, |
| 120 GENERAL_FAILURE | 127 GENERAL_FAILURE |
| 121 }; | 128 }; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Helper function to set the referrer on the request passed in. | 255 // Helper function to set the referrer on the request passed in. |
| 249 void SetReferrer(WebKit::WebURLRequest* request, Referrer referrer_flag); | 256 void SetReferrer(WebKit::WebURLRequest* request, Referrer referrer_flag); |
| 250 | 257 |
| 251 // Check for invalid chars like @, ;, \ before the first / (in path). | 258 // Check for invalid chars like @, ;, \ before the first / (in path). |
| 252 bool IsValidUrl(const GURL& url, Referrer referrer_flag); | 259 bool IsValidUrl(const GURL& url, Referrer referrer_flag); |
| 253 | 260 |
| 254 std::vector<ClientInfo> clients_; | 261 std::vector<ClientInfo> clients_; |
| 255 | 262 |
| 256 bool windowless_; | 263 bool windowless_; |
| 257 gfx::PluginWindowHandle window_; | 264 gfx::PluginWindowHandle window_; |
| 265 #if defined(OS_MACOSX) |
| 266 bool next_io_surface_allocated_; |
| 267 int32 next_io_surface_width_; |
| 268 int32 next_io_surface_height_; |
| 269 uint32 next_io_surface_id_; |
| 270 #endif |
| 258 bool accepts_input_events_; | 271 bool accepts_input_events_; |
| 259 base::WeakPtr<WebPluginPageDelegate> page_delegate_; | 272 base::WeakPtr<WebPluginPageDelegate> page_delegate_; |
| 260 WebKit::WebFrame* webframe_; | 273 WebKit::WebFrame* webframe_; |
| 261 | 274 |
| 262 WebPluginDelegate* delegate_; | 275 WebPluginDelegate* delegate_; |
| 263 | 276 |
| 264 // This is just a weak reference. | 277 // This is just a weak reference. |
| 265 WebKit::WebPluginContainer* container_; | 278 WebKit::WebPluginContainer* container_; |
| 266 | 279 |
| 267 typedef std::map<WebPluginResourceClient*, | 280 typedef std::map<WebPluginResourceClient*, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 312 |
| 300 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 313 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
| 301 | 314 |
| 302 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 315 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 303 }; | 316 }; |
| 304 | 317 |
| 305 } // namespace npapi | 318 } // namespace npapi |
| 306 } // namespace webkit | 319 } // namespace webkit |
| 307 | 320 |
| 308 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 321 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |