| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class responds to requests from renderers for the list of plugins, and | 5 // This class responds to requests from renderers for the list of plugins, and |
| 6 // also a proxy object for plugin instances. | 6 // also a proxy object for plugin instances. |
| 7 | 7 |
| 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
| 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
| 10 #pragma once | 10 #pragma once |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Creates the PluginService object, but doesn't actually build the plugin | 124 // Creates the PluginService object, but doesn't actually build the plugin |
| 125 // list yet. It's generated lazily. | 125 // list yet. It's generated lazily. |
| 126 PluginService(); | 126 PluginService(); |
| 127 virtual ~PluginService(); | 127 virtual ~PluginService(); |
| 128 | 128 |
| 129 // base::WaitableEventWatcher::Delegate implementation. | 129 // base::WaitableEventWatcher::Delegate implementation. |
| 130 virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); | 130 virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); |
| 131 | 131 |
| 132 // NotificationObserver implementation | 132 // NotificationObserver implementation |
| 133 virtual void Observe(NotificationType type, const NotificationSource& source, | 133 virtual void Observe(int type, const NotificationSource& source, |
| 134 const NotificationDetails& details); | 134 const NotificationDetails& details); |
| 135 | 135 |
| 136 void RegisterPepperPlugins(); | 136 void RegisterPepperPlugins(); |
| 137 | 137 |
| 138 PepperPluginInfo* GetRegisteredPpapiPluginInfo(const FilePath& plugin_path); | 138 PepperPluginInfo* GetRegisteredPpapiPluginInfo(const FilePath& plugin_path); |
| 139 | 139 |
| 140 // Helper so we can do the plugin lookup on the FILE thread. | 140 // Helper so we can do the plugin lookup on the FILE thread. |
| 141 void GetAllowedPluginForOpenChannelToPlugin( | 141 void GetAllowedPluginForOpenChannelToPlugin( |
| 142 int render_process_id, | 142 int render_process_id, |
| 143 int render_view_id, | 143 int render_view_id, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 std::vector<OverriddenPlugin> overridden_plugins_; | 189 std::vector<OverriddenPlugin> overridden_plugins_; |
| 190 base::Lock overridden_plugins_lock_; | 190 base::Lock overridden_plugins_lock_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(PluginService); | 192 DISALLOW_COPY_AND_ASSIGN(PluginService); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); | 195 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); |
| 196 | 196 |
| 197 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 197 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
| OLD | NEW |