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" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "content/child/npapi/plugin_instance.h" | 14 #include "content/child/npapi/plugin_instance.h" |
15 #include "content/child/npapi/plugin_lib.h" | 15 #include "content/child/npapi/plugin_lib.h" |
16 #include "content/child/npapi/plugin_stream_url.h" | 16 #include "content/child/npapi/plugin_stream_url.h" |
17 #include "content/child/npapi/plugin_url_fetcher.h" | 17 #include "content/child/npapi/plugin_url_fetcher.h" |
18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/web/WebInputEvent.h" |
19 #include "webkit/glue/webkit_glue.h" | |
20 | 19 |
21 using blink::WebCursorInfo; | 20 using blink::WebCursorInfo; |
22 using blink::WebInputEvent; | 21 using blink::WebInputEvent; |
23 | 22 |
24 namespace content { | 23 namespace content { |
25 | 24 |
26 WebPluginDelegateImpl* WebPluginDelegateImpl::Create( | 25 WebPluginDelegateImpl* WebPluginDelegateImpl::Create( |
27 WebPlugin* plugin, | 26 WebPlugin* plugin, |
28 const base::FilePath& filename, | 27 const base::FilePath& filename, |
29 const std::string& mime_type) { | 28 const std::string& mime_type) { |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 PluginStreamUrl* plugin_stream = instance()->CreateStream( | 316 PluginStreamUrl* plugin_stream = instance()->CreateStream( |
318 resource_id, url, std::string(), notify_id); | 317 resource_id, url, std::string(), notify_id); |
319 | 318 |
320 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( | 319 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( |
321 plugin_stream, url, first_party_for_cookies, method, buf, len, | 320 plugin_stream, url, first_party_for_cookies, method, buf, len, |
322 referrer, notify_redirects, is_plugin_src_load, origin_pid, | 321 referrer, notify_redirects, is_plugin_src_load, origin_pid, |
323 render_view_id, resource_id)); | 322 render_view_id, resource_id)); |
324 } | 323 } |
325 | 324 |
326 } // namespace content | 325 } // namespace content |
OLD | NEW |