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" | 19 #include "webkit/glue/webkit_glue.h" |
20 | 20 |
21 using WebKit::WebCursorInfo; | 21 using blink::WebCursorInfo; |
22 using WebKit::WebInputEvent; | 22 using blink::WebInputEvent; |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 WebPluginDelegateImpl* WebPluginDelegateImpl::Create( | 26 WebPluginDelegateImpl* WebPluginDelegateImpl::Create( |
27 WebPlugin* plugin, | 27 WebPlugin* plugin, |
28 const base::FilePath& filename, | 28 const base::FilePath& filename, |
29 const std::string& mime_type) { | 29 const std::string& mime_type) { |
30 scoped_refptr<PluginLib> plugin_lib(PluginLib::CreatePluginLib(filename)); | 30 scoped_refptr<PluginLib> plugin_lib(PluginLib::CreatePluginLib(filename)); |
31 if (plugin_lib.get() == NULL) | 31 if (plugin_lib.get() == NULL) |
32 return NULL; | 32 return NULL; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 PluginStreamUrl* plugin_stream = instance()->CreateStream( | 317 PluginStreamUrl* plugin_stream = instance()->CreateStream( |
318 resource_id, url, std::string(), notify_id); | 318 resource_id, url, std::string(), notify_id); |
319 | 319 |
320 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( | 320 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( |
321 plugin_stream, url, first_party_for_cookies, method, buf, len, | 321 plugin_stream, url, first_party_for_cookies, method, buf, len, |
322 referrer, notify_redirects, is_plugin_src_load, origin_pid, | 322 referrer, notify_redirects, is_plugin_src_load, origin_pid, |
323 render_view_id, resource_id)); | 323 render_view_id, resource_id)); |
324 } | 324 } |
325 | 325 |
326 } // namespace content | 326 } // namespace content |
OLD | NEW |