| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 uint32 expected_length, | 75 uint32 expected_length, |
| 76 uint32 last_modified); | 76 uint32 last_modified); |
| 77 virtual void DidReceiveManualData(const char* buffer, int length); | 77 virtual void DidReceiveManualData(const char* buffer, int length); |
| 78 virtual void DidFinishManualLoading(); | 78 virtual void DidFinishManualLoading(); |
| 79 virtual void DidManualLoadFail(); | 79 virtual void DidManualLoadFail(); |
| 80 virtual std::wstring GetPluginPath(); | 80 virtual std::wstring GetPluginPath(); |
| 81 virtual void InstallMissingPlugin(); | 81 virtual void InstallMissingPlugin(); |
| 82 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, | 82 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, |
| 83 const std::string &url, | 83 const std::string &url, |
| 84 bool notify_needed, | 84 bool notify_needed, |
| 85 void *notify_data); | 85 void* notify_data, |
| 86 void* existing_stream); |
| 86 | 87 |
| 87 // Notifies the delegate about a Get/Post URL request getting routed | 88 // Notifies the delegate about a Get/Post URL request getting routed |
| 88 virtual void URLRequestRouted(const std::string&url, bool notify_needed, | 89 virtual void URLRequestRouted(const std::string&url, bool notify_needed, |
| 89 void* notify_data); | 90 void* notify_data); |
| 90 | 91 |
| 91 protected: | 92 protected: |
| 92 template<class WebPluginDelegateProxy> friend class DeleteTask; | 93 template<class WebPluginDelegateProxy> friend class DeleteTask; |
| 93 ~WebPluginDelegateProxy(); | 94 ~WebPluginDelegateProxy(); |
| 94 | 95 |
| 95 private: | 96 private: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 111 void OnSetCookie(const GURL& url, | 112 void OnSetCookie(const GURL& url, |
| 112 const GURL& policy_url, | 113 const GURL& policy_url, |
| 113 const std::string& cookie); | 114 const std::string& cookie); |
| 114 void OnGetCookies(const GURL& url, const GURL& policy_url, | 115 void OnGetCookies(const GURL& url, const GURL& policy_url, |
| 115 std::string* cookies); | 116 std::string* cookies); |
| 116 void OnShowModalHTMLDialog(const GURL& url, int width, int height, | 117 void OnShowModalHTMLDialog(const GURL& url, int width, int height, |
| 117 const std::string& json_arguments, | 118 const std::string& json_arguments, |
| 118 std::string* json_retval); | 119 std::string* json_retval); |
| 119 void OnMissingPluginStatus(int status); | 120 void OnMissingPluginStatus(int status); |
| 120 void OnGetCPBrowsingContext(uint32* context); | 121 void OnGetCPBrowsingContext(uint32* context); |
| 122 void OnCancelDocumentLoad(); |
| 123 void OnInitiateHTTPRangeRequest(const std::string& url, |
| 124 const std::string& range_info, |
| 125 HANDLE existing_stream, bool notify_needed, |
| 126 HANDLE notify_data); |
| 121 | 127 |
| 122 // Draw a graphic indicating a crashed plugin. | 128 // Draw a graphic indicating a crashed plugin. |
| 123 void PaintSadPlugin(HDC hdc, const gfx::Rect& rect); | 129 void PaintSadPlugin(HDC hdc, const gfx::Rect& rect); |
| 124 | 130 |
| 125 RenderView* render_view_; | 131 RenderView* render_view_; |
| 126 WebPlugin* plugin_; | 132 WebPlugin* plugin_; |
| 127 bool windowless_; | 133 bool windowless_; |
| 128 bool first_paint_; | 134 bool first_paint_; |
| 129 scoped_refptr<PluginChannelHost> channel_host_; | 135 scoped_refptr<PluginChannelHost> channel_host_; |
| 130 std::string mime_type_; | 136 std::string mime_type_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 145 HANDLE modal_loop_pump_messages_event_; | 151 HANDLE modal_loop_pump_messages_event_; |
| 146 | 152 |
| 147 // Bitmap for crashed plugin | 153 // Bitmap for crashed plugin |
| 148 SkBitmap* sad_plugin_; | 154 SkBitmap* sad_plugin_; |
| 149 | 155 |
| 150 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 156 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
| 151 }; | 157 }; |
| 152 | 158 |
| 153 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 159 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
| 154 | 160 |
| OLD | NEW |