| OLD | NEW |
| 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_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual NPObject* GetPluginElement() OVERRIDE; | 106 virtual NPObject* GetPluginElement() OVERRIDE; |
| 107 virtual bool FindProxyForUrl(const GURL& url, | 107 virtual bool FindProxyForUrl(const GURL& url, |
| 108 std::string* proxy_list) OVERRIDE; | 108 std::string* proxy_list) OVERRIDE; |
| 109 virtual void SetCookie(const GURL& url, | 109 virtual void SetCookie(const GURL& url, |
| 110 const GURL& first_party_for_cookies, | 110 const GURL& first_party_for_cookies, |
| 111 const std::string& cookie) OVERRIDE; | 111 const std::string& cookie) OVERRIDE; |
| 112 virtual std::string GetCookies(const GURL& url, | 112 virtual std::string GetCookies(const GURL& url, |
| 113 const GURL& first_party_for_cookies) OVERRIDE; | 113 const GURL& first_party_for_cookies) OVERRIDE; |
| 114 virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE; | 114 virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE; |
| 115 #if defined(OS_MACOSX) | 115 #if defined(OS_MACOSX) |
| 116 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface( |
| 117 gfx::GpuPreference gpu_preference) OVERRIDE; |
| 116 virtual void AcceleratedPluginEnabledRendering() OVERRIDE; | 118 virtual void AcceleratedPluginEnabledRendering() OVERRIDE; |
| 117 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, | 119 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, |
| 118 int32 height, | 120 int32 height, |
| 119 uint32 surface_id) OVERRIDE; | 121 uint32 surface_id) OVERRIDE; |
| 120 virtual void AcceleratedPluginSwappedIOSurface() OVERRIDE; | 122 virtual void AcceleratedPluginSwappedIOSurface() OVERRIDE; |
| 121 #endif | 123 #endif |
| 122 | 124 |
| 123 // Given a (maybe partial) url, completes using the base url. | 125 // Given a (maybe partial) url, completes using the base url. |
| 124 GURL CompleteURL(const char* url); | 126 GURL CompleteURL(const char* url); |
| 125 | 127 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 317 |
| 316 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 318 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
| 317 | 319 |
| 318 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 320 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 319 }; | 321 }; |
| 320 | 322 |
| 321 } // namespace npapi | 323 } // namespace npapi |
| 322 } // namespace webkit | 324 } // namespace webkit |
| 323 | 325 |
| 324 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 326 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |