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_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void PluginDestroyed() override; | 85 void PluginDestroyed() override; |
86 void UpdateGeometry(const gfx::Rect& window_rect, | 86 void UpdateGeometry(const gfx::Rect& window_rect, |
87 const gfx::Rect& clip_rect) override; | 87 const gfx::Rect& clip_rect) override; |
88 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 88 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
89 void SetFocus(bool focused) override; | 89 void SetFocus(bool focused) override; |
90 bool HandleInputEvent(const blink::WebInputEvent& event, | 90 bool HandleInputEvent(const blink::WebInputEvent& event, |
91 WebCursor::CursorInfo* cursor_info) override; | 91 WebCursor::CursorInfo* cursor_info) override; |
92 NPObject* GetPluginScriptableObject() override; | 92 NPObject* GetPluginScriptableObject() override; |
93 NPP GetPluginNPP() override; | 93 NPP GetPluginNPP() override; |
94 bool GetFormValue(base::string16* value) override; | 94 bool GetFormValue(base::string16* value) override; |
95 void DidFinishLoadWithReason(const GURL& url, | |
96 NPReason reason, | |
97 int notify_id) override; | |
98 int GetProcessId() override; | 95 int GetProcessId() override; |
99 void SendJavaScriptStream(const GURL& url, | 96 void SendJavaScriptStream(const GURL& url, |
100 const std::string& result, | 97 const std::string& result, |
101 bool success, | 98 bool success) override; |
102 int notify_id) override; | |
103 void DidReceiveManualResponse(const GURL& url, | 99 void DidReceiveManualResponse(const GURL& url, |
104 const std::string& mime_type, | 100 const std::string& mime_type, |
105 const std::string& headers, | 101 const std::string& headers, |
106 uint32 expected_length, | 102 uint32 expected_length, |
107 uint32 last_modified) override; | 103 uint32 last_modified) override; |
108 void DidReceiveManualData(const char* buffer, int length) override; | 104 void DidReceiveManualData(const char* buffer, int length) override; |
109 void DidFinishManualLoading() override; | 105 void DidFinishManualLoading() override; |
110 void DidManualLoadFail() override; | 106 void DidManualLoadFail() override; |
111 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, | 107 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, |
112 const GURL& url, | 108 const GURL& url) override; |
113 int notify_id) override; | |
114 WebPluginResourceClient* CreateSeekableResourceClient( | 109 WebPluginResourceClient* CreateSeekableResourceClient( |
115 unsigned long resource_id, | 110 unsigned long resource_id, |
116 int range_request_id) override; | 111 int range_request_id) override; |
117 void FetchURL(unsigned long resource_id, | 112 void FetchURL(unsigned long resource_id, |
118 int notify_id, | |
119 const GURL& url, | 113 const GURL& url, |
120 const GURL& first_party_for_cookies, | 114 const GURL& first_party_for_cookies, |
121 const std::string& method, | 115 const std::string& method, |
122 const char* buf, | 116 const char* buf, |
123 unsigned int len, | 117 unsigned int len, |
124 const Referrer& referrer, | 118 const Referrer& referrer, |
125 bool notify_redirects, | 119 bool notify_redirects, |
126 bool is_plugin_src_load, | 120 bool is_plugin_src_load, |
127 int origin_pid, | 121 int origin_pid, |
128 int render_frame_id, | 122 int render_frame_id, |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // asynchronously. | 465 // asynchronously. |
472 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 466 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
473 #endif | 467 #endif |
474 | 468 |
475 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 469 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
476 }; | 470 }; |
477 | 471 |
478 } // namespace content | 472 } // namespace content |
479 | 473 |
480 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 474 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |