Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Side by Side Diff: webkit/plugins/npapi/plugin_host.cc

Issue 19697013: Move NPAPI test plugin to content/test/plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/plugin/resource.h ('k') | webkit/plugins/npapi/plugin_stream_url.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "webkit/plugins/npapi/plugin_host.h" 5 #include "webkit/plugins/npapi/plugin_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "net/base/net_util.h" 16 #include "net/base/net_util.h"
17 #include "third_party/WebKit/public/web/WebBindings.h" 17 #include "third_party/WebKit/public/web/WebBindings.h"
18 #include "third_party/WebKit/public/web/WebKit.h" 18 #include "third_party/WebKit/public/web/WebKit.h"
19 #include "third_party/npapi/bindings/npruntime.h" 19 #include "third_party/npapi/bindings/npruntime.h"
20 #include "ui/base/ui_base_switches.h" 20 #include "ui/base/ui_base_switches.h"
21 #include "ui/gl/gl_implementation.h" 21 #include "ui/gl/gl_implementation.h"
22 #include "ui/gl/gl_surface.h" 22 #include "ui/gl/gl_surface.h"
23 #include "webkit/common/user_agent/user_agent.h" 23 #include "webkit/common/user_agent/user_agent.h"
24 #include "webkit/plugins/npapi/plugin_instance.h" 24 #include "webkit/plugins/npapi/plugin_instance.h"
25 #include "webkit/plugins/npapi/plugin_lib.h"
26 #include "webkit/plugins/npapi/plugin_stream_url.h" 25 #include "webkit/plugins/npapi/plugin_stream_url.h"
27 #include "webkit/plugins/npapi/webplugin_delegate.h" 26 #include "webkit/plugins/npapi/webplugin_delegate.h"
28 #include "webkit/plugins/webplugininfo.h" 27 #include "webkit/plugins/webplugininfo.h"
29 28
30 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
31 #include "base/mac/mac_util.h" 30 #include "base/mac/mac_util.h"
32 #endif 31 #endif
33 32
34 using WebKit::WebBindings; 33 using WebKit::WebBindings;
35 34
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 } 1103 }
1105 1104
1106 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { 1105 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) {
1107 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); 1106 scoped_refptr<PluginInstance> plugin(FindInstance(instance));
1108 if (plugin.get()) { 1107 if (plugin.get()) {
1109 plugin->URLRedirectResponse(!!allow, notify_data); 1108 plugin->URLRedirectResponse(!!allow, notify_data);
1110 } 1109 }
1111 } 1110 }
1112 1111
1113 } // extern "C" 1112 } // extern "C"
OLDNEW
« no previous file with comments | « content/test/plugin/resource.h ('k') | webkit/plugins/npapi/plugin_stream_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698