| 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 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void DidManualLoadFail() OVERRIDE; | 121 virtual void DidManualLoadFail() OVERRIDE; |
| 122 virtual WebPluginResourceClient* CreateResourceClient( | 122 virtual WebPluginResourceClient* CreateResourceClient( |
| 123 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE; | 123 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE; |
| 124 virtual WebPluginResourceClient* CreateSeekableResourceClient( | 124 virtual WebPluginResourceClient* CreateSeekableResourceClient( |
| 125 unsigned long resource_id, int range_request_id) OVERRIDE; | 125 unsigned long resource_id, int range_request_id) OVERRIDE; |
| 126 virtual void FetchURL(unsigned long resource_id, | 126 virtual void FetchURL(unsigned long resource_id, |
| 127 int notify_id, | 127 int notify_id, |
| 128 const GURL& url, | 128 const GURL& url, |
| 129 const GURL& first_party_for_cookies, | 129 const GURL& first_party_for_cookies, |
| 130 const std::string& method, | 130 const std::string& method, |
| 131 const std::string& post_data, | 131 const char* buf, |
| 132 unsigned int len, |
| 132 const GURL& referrer, | 133 const GURL& referrer, |
| 133 bool notify_redirects, | 134 bool notify_redirects, |
| 134 bool is_plugin_src_load, | 135 bool is_plugin_src_load, |
| 135 int origin_pid, | 136 int origin_pid, |
| 136 int render_view_id) OVERRIDE; | 137 int render_view_id) OVERRIDE; |
| 137 | 138 |
| 138 gfx::PluginWindowHandle GetPluginWindowHandle(); | 139 gfx::PluginWindowHandle GetPluginWindowHandle(); |
| 139 | 140 |
| 140 protected: | 141 protected: |
| 141 friend class base::DeleteHelper<WebPluginDelegateProxy>; | 142 friend class base::DeleteHelper<WebPluginDelegateProxy>; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 163 void OnGetPluginElement(int route_id, bool* success); | 164 void OnGetPluginElement(int route_id, bool* success); |
| 164 void OnSetCookie(const GURL& url, | 165 void OnSetCookie(const GURL& url, |
| 165 const GURL& first_party_for_cookies, | 166 const GURL& first_party_for_cookies, |
| 166 const std::string& cookie); | 167 const std::string& cookie); |
| 167 void OnGetCookies(const GURL& url, const GURL& first_party_for_cookies, | 168 void OnGetCookies(const GURL& url, const GURL& first_party_for_cookies, |
| 168 std::string* cookies); | 169 std::string* cookies); |
| 169 void OnCancelDocumentLoad(); | 170 void OnCancelDocumentLoad(); |
| 170 void OnInitiateHTTPRangeRequest(const std::string& url, | 171 void OnInitiateHTTPRangeRequest(const std::string& url, |
| 171 const std::string& range_info, | 172 const std::string& range_info, |
| 172 int range_request_id); | 173 int range_request_id); |
| 174 void OnDidStartLoading(); |
| 175 void OnDidStopLoading(); |
| 173 void OnDeferResourceLoading(unsigned long resource_id, bool defer); | 176 void OnDeferResourceLoading(unsigned long resource_id, bool defer); |
| 174 void OnURLRedirectResponse(bool allow, int resource_id); | 177 void OnURLRedirectResponse(bool allow, int resource_id); |
| 175 void OnCheckIfRunInsecureContent(const GURL& url, bool* result); | 178 void OnCheckIfRunInsecureContent(const GURL& url, bool* result); |
| 176 #if defined(OS_MACOSX) | 179 #if defined(OS_MACOSX) |
| 177 void OnFocusChanged(bool focused); | 180 void OnFocusChanged(bool focused); |
| 178 void OnStartIme(); | 181 void OnStartIme(); |
| 179 // Accelerated (Core Animation) plugin implementation. | 182 // Accelerated (Core Animation) plugin implementation. |
| 180 void OnAcceleratedPluginEnabledRendering(); | 183 void OnAcceleratedPluginEnabledRendering(); |
| 181 void OnAcceleratedPluginAllocatedIOSurface(int32 width, | 184 void OnAcceleratedPluginAllocatedIOSurface(int32 width, |
| 182 int32 height, | 185 int32 height, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 300 |
| 298 // The url of the main frame hosting the plugin. | 301 // The url of the main frame hosting the plugin. |
| 299 GURL page_url_; | 302 GURL page_url_; |
| 300 | 303 |
| 301 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 304 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 302 }; | 305 }; |
| 303 | 306 |
| 304 } // namespace content | 307 } // namespace content |
| 305 | 308 |
| 306 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 309 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |