| 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 #include "content/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 bool WebPluginDelegateImpl::IsUserGesture(const WebInputEvent& event) { | 280 bool WebPluginDelegateImpl::IsUserGesture(const WebInputEvent& event) { |
| 281 switch (event.type) { | 281 switch (event.type) { |
| 282 case WebInputEvent::MouseDown: | 282 case WebInputEvent::MouseDown: |
| 283 case WebInputEvent::MouseUp: | 283 case WebInputEvent::MouseUp: |
| 284 case WebInputEvent::KeyDown: | 284 case WebInputEvent::KeyDown: |
| 285 case WebInputEvent::KeyUp: | 285 case WebInputEvent::KeyUp: |
| 286 return true; | 286 return true; |
| 287 default: | 287 default: |
| 288 return false; | 288 return false; |
| 289 } | 289 } |
| 290 return false; | |
| 291 } | 290 } |
| 292 | 291 |
| 293 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient( | 292 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient( |
| 294 unsigned long resource_id, const GURL& url, int notify_id) { | 293 unsigned long resource_id, const GURL& url, int notify_id) { |
| 295 return instance()->CreateStream( | 294 return instance()->CreateStream( |
| 296 resource_id, url, std::string(), notify_id); | 295 resource_id, url, std::string(), notify_id); |
| 297 } | 296 } |
| 298 | 297 |
| 299 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient( | 298 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient( |
| 300 unsigned long resource_id, int range_request_id) { | 299 unsigned long resource_id, int range_request_id) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 324 resource_id, url, std::string(), notify_id); | 323 resource_id, url, std::string(), notify_id); |
| 325 | 324 |
| 326 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA); | 325 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA); |
| 327 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( | 326 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( |
| 328 plugin_stream, url, first_party_for_cookies, method, buf, len, | 327 plugin_stream, url, first_party_for_cookies, method, buf, len, |
| 329 referrer, notify_redirects, is_plugin_src_load, origin_pid, | 328 referrer, notify_redirects, is_plugin_src_load, origin_pid, |
| 330 render_frame_id, render_view_id, resource_id, copy_stream_data)); | 329 render_frame_id, render_view_id, resource_id, copy_stream_data)); |
| 331 } | 330 } |
| 332 | 331 |
| 333 } // namespace content | 332 } // namespace content |
| OLD | NEW |