OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Pepper API support should be turned on for this module. | 5 // Pepper API support should be turned on for this module. |
6 #define PEPPER_APIS_ENABLED | 6 #define PEPPER_APIS_ENABLED |
7 | 7 |
8 #include "webkit/glue/plugins/plugin_host.h" | 8 #include "webkit/glue/plugins/plugin_host.h" |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
17 #include "webkit/api/public/WebBindings.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
18 #include "webkit/default_plugin/default_plugin_shared.h" | 18 #include "webkit/default_plugin/default_plugin_shared.h" |
19 #include "webkit/glue/glue_util.h" | 19 #include "webkit/glue/glue_util.h" |
20 #include "webkit/glue/webplugininfo.h" | 20 #include "webkit/glue/webplugininfo.h" |
21 #include "webkit/glue/webplugin_delegate.h" | 21 #include "webkit/glue/webplugin_delegate.h" |
22 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
23 #include "webkit/glue/pepper/pepper.h" | 23 #include "webkit/glue/pepper/pepper.h" |
24 #include "webkit/glue/plugins/plugin_instance.h" | 24 #include "webkit/glue/plugins/plugin_instance.h" |
25 #include "webkit/glue/plugins/plugin_lib.h" | 25 #include "webkit/glue/plugins/plugin_lib.h" |
26 #include "webkit/glue/plugins/plugin_list.h" | 26 #include "webkit/glue/plugins/plugin_list.h" |
27 #include "webkit/glue/plugins/plugin_stream_url.h" | 27 #include "webkit/glue/plugins/plugin_stream_url.h" |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 | 1118 |
1119 return plugin->ScheduleTimer(interval, repeat, func); | 1119 return plugin->ScheduleTimer(interval, repeat, func); |
1120 } | 1120 } |
1121 | 1121 |
1122 void NPN_UnscheduleTimer(NPP id, uint32 timer_id) { | 1122 void NPN_UnscheduleTimer(NPP id, uint32 timer_id) { |
1123 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); | 1123 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); |
1124 if (plugin) | 1124 if (plugin) |
1125 plugin->UnscheduleTimer(timer_id); | 1125 plugin->UnscheduleTimer(timer_id); |
1126 } | 1126 } |
1127 } // extern "C" | 1127 } // extern "C" |
OLD | NEW |