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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool Initialize(const GURL& url, | 61 bool Initialize(const GURL& url, |
62 const std::vector<std::string>& arg_names, | 62 const std::vector<std::string>& arg_names, |
63 const std::vector<std::string>& arg_values, | 63 const std::vector<std::string>& arg_values, |
64 bool load_manually) override; | 64 bool load_manually) override; |
65 void UpdateGeometry(const gfx::Rect& window_rect, | 65 void UpdateGeometry(const gfx::Rect& window_rect, |
66 const gfx::Rect& clip_rect) override; | 66 const gfx::Rect& clip_rect) override; |
67 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 67 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
68 NPObject* GetPluginScriptableObject() override; | 68 NPObject* GetPluginScriptableObject() override; |
69 struct _NPP* GetPluginNPP() override; | 69 struct _NPP* GetPluginNPP() override; |
70 bool GetFormValue(base::string16* value) override; | 70 bool GetFormValue(base::string16* value) override; |
71 void DidFinishLoadWithReason(const GURL& url, | |
72 NPReason reason, | |
73 int notify_id) override; | |
74 void SetFocus(bool focused) override; | 71 void SetFocus(bool focused) override; |
75 bool HandleInputEvent(const blink::WebInputEvent& event, | 72 bool HandleInputEvent(const blink::WebInputEvent& event, |
76 WebCursor::CursorInfo* cursor) override; | 73 WebCursor::CursorInfo* cursor) override; |
77 int GetProcessId() override; | 74 int GetProcessId() override; |
78 | 75 |
79 // Informs the plugin that its containing content view has gained or lost | 76 // Informs the plugin that its containing content view has gained or lost |
80 // first responder status. | 77 // first responder status. |
81 virtual void SetContentAreaFocus(bool has_focus); | 78 virtual void SetContentAreaFocus(bool has_focus); |
82 #if defined(OS_WIN) | 79 #if defined(OS_WIN) |
83 // Informs the plugin that plugin IME has updated its status. | 80 // Informs the plugin that plugin IME has updated its status. |
(...skipping 21 matching lines...) Expand all Loading... |
105 int plugin_id); | 102 int plugin_id); |
106 #endif | 103 #endif |
107 | 104 |
108 // IPC::Listener implementation: | 105 // IPC::Listener implementation: |
109 bool OnMessageReceived(const IPC::Message& msg) override; | 106 bool OnMessageReceived(const IPC::Message& msg) override; |
110 void OnChannelError() override; | 107 void OnChannelError() override; |
111 | 108 |
112 // IPC::Sender implementation: | 109 // IPC::Sender implementation: |
113 bool Send(IPC::Message* msg) override; | 110 bool Send(IPC::Message* msg) override; |
114 | 111 |
115 void SendJavaScriptStream(const GURL& url, | |
116 const std::string& result, | |
117 bool success, | |
118 int notify_id) override; | |
119 | |
120 void DidReceiveManualResponse(const GURL& url, | |
121 const std::string& mime_type, | |
122 const std::string& headers, | |
123 uint32 expected_length, | |
124 uint32 last_modified) override; | |
125 void DidReceiveManualData(const char* buffer, int length) override; | |
126 void DidFinishManualLoading() override; | |
127 void DidManualLoadFail() override; | |
128 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, | |
129 const GURL& url, | |
130 int notify_id) override; | |
131 WebPluginResourceClient* CreateSeekableResourceClient( | |
132 unsigned long resource_id, | |
133 int range_request_id) override; | |
134 void FetchURL(unsigned long resource_id, | |
135 int notify_id, | |
136 const GURL& url, | |
137 const GURL& first_party_for_cookies, | |
138 const std::string& method, | |
139 const char* buf, | |
140 unsigned int len, | |
141 const Referrer& referrer, | |
142 bool notify_redirects, | |
143 bool is_plugin_src_load, | |
144 int origin_pid, | |
145 int render_frame_id, | |
146 int render_view_id) override; | |
147 | |
148 gfx::PluginWindowHandle GetPluginWindowHandle(); | 112 gfx::PluginWindowHandle GetPluginWindowHandle(); |
149 | 113 |
150 protected: | 114 protected: |
151 friend class base::DeleteHelper<WebPluginDelegateProxy>; | 115 friend class base::DeleteHelper<WebPluginDelegateProxy>; |
152 ~WebPluginDelegateProxy() override; | 116 ~WebPluginDelegateProxy() override; |
153 | 117 |
154 private: | 118 private: |
155 struct SharedBitmap { | 119 struct SharedBitmap { |
156 SharedBitmap(); | 120 SharedBitmap(); |
157 ~SharedBitmap(); | 121 ~SharedBitmap(); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 274 |
311 // The url of the main frame hosting the plugin. | 275 // The url of the main frame hosting the plugin. |
312 GURL page_url_; | 276 GURL page_url_; |
313 | 277 |
314 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 278 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
315 }; | 279 }; |
316 | 280 |
317 } // namespace content | 281 } // namespace content |
318 | 282 |
319 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 283 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |