| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void DidReceiveManualResponse(const GURL& url, | 84 virtual void DidReceiveManualResponse(const GURL& url, |
| 85 const std::string& mime_type, | 85 const std::string& mime_type, |
| 86 const std::string& headers, | 86 const std::string& headers, |
| 87 uint32 expected_length, | 87 uint32 expected_length, |
| 88 uint32 last_modified); | 88 uint32 last_modified); |
| 89 virtual void DidReceiveManualData(const char* buffer, int length); | 89 virtual void DidReceiveManualData(const char* buffer, int length); |
| 90 virtual void DidFinishManualLoading(); | 90 virtual void DidFinishManualLoading(); |
| 91 virtual void DidManualLoadFail(); | 91 virtual void DidManualLoadFail(); |
| 92 virtual void InstallMissingPlugin(); | 92 virtual void InstallMissingPlugin(); |
| 93 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( | 93 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( |
| 94 int resource_id, | 94 unsigned long resource_id, |
| 95 const GURL& url, | 95 const GURL& url, |
| 96 bool notify_needed, | 96 bool notify_needed, |
| 97 intptr_t notify_data, | 97 intptr_t notify_data, |
| 98 intptr_t existing_stream); | 98 intptr_t existing_stream); |
| 99 | 99 |
| 100 protected: | 100 protected: |
| 101 template<class WebPluginDelegateProxy> friend class DeleteTask; | 101 template<class WebPluginDelegateProxy> friend class DeleteTask; |
| 102 ~WebPluginDelegateProxy(); | 102 ~WebPluginDelegateProxy(); |
| 103 | 103 |
| 104 private: | 104 private: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 129 void OnSetDropEffect(const NPVariant_Param& event, int effect, | 129 void OnSetDropEffect(const NPVariant_Param& event, int effect, |
| 130 bool* success); | 130 bool* success); |
| 131 void OnMissingPluginStatus(int status); | 131 void OnMissingPluginStatus(int status); |
| 132 void OnGetCPBrowsingContext(uint32* context); | 132 void OnGetCPBrowsingContext(uint32* context); |
| 133 void OnCancelDocumentLoad(); | 133 void OnCancelDocumentLoad(); |
| 134 void OnInitiateHTTPRangeRequest(const std::string& url, | 134 void OnInitiateHTTPRangeRequest(const std::string& url, |
| 135 const std::string& range_info, | 135 const std::string& range_info, |
| 136 intptr_t existing_stream, | 136 intptr_t existing_stream, |
| 137 bool notify_needed, | 137 bool notify_needed, |
| 138 intptr_t notify_data); | 138 intptr_t notify_data); |
| 139 void OnDeferResourceLoading(int resource_id, bool defer); | 139 void OnDeferResourceLoading(unsigned long resource_id, bool defer); |
| 140 | 140 |
| 141 #if defined(OS_MACOSX) | 141 #if defined(OS_MACOSX) |
| 142 void OnUpdateGeometry_ACK(int ack_key); | 142 void OnUpdateGeometry_ACK(int ack_key); |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 // Draw a graphic indicating a crashed plugin. | 145 // Draw a graphic indicating a crashed plugin. |
| 146 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); | 146 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); |
| 147 | 147 |
| 148 // Returns true if the given rectangle is different in the native drawing | 148 // Returns true if the given rectangle is different in the native drawing |
| 149 // context and the current background bitmap. | 149 // context and the current background bitmap. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // This lets us know which portion of the backing store has been painted into. | 222 // This lets us know which portion of the backing store has been painted into. |
| 223 gfx::Rect backing_store_painted_; | 223 gfx::Rect backing_store_painted_; |
| 224 | 224 |
| 225 // The url of the main frame hosting the plugin. | 225 // The url of the main frame hosting the plugin. |
| 226 GURL page_url_; | 226 GURL page_url_; |
| 227 | 227 |
| 228 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 228 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 231 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |