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 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 5 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
7 #pragma once | |
8 | 7 |
9 #include <list> | 8 #include <list> |
10 #include <map> | 9 #include <map> |
11 | 10 |
12 #include "content/public/common/pepper_plugin_info.h" | 11 #include "content/public/common/pepper_plugin_info.h" |
13 #include "webkit/plugins/ppapi/plugin_delegate.h" | 12 #include "webkit/plugins/ppapi/plugin_delegate.h" |
14 | 13 |
15 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if | 14 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if |
16 // the operation is not possible, in particular the WebPluginInfo::type | 15 // the operation is not possible, in particular the WebPluginInfo::type |
17 // must be one of the pepper types. | 16 // must be one of the pepper types. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // non-crashed modules. If an out-of-process module crashes, it may | 84 // non-crashed modules. If an out-of-process module crashes, it may |
86 // continue as long as there are WebKit references to it, but it will not | 85 // continue as long as there are WebKit references to it, but it will not |
87 // appear in this list. | 86 // appear in this list. |
88 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; | 87 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; |
89 NonOwningModuleMap live_modules_; | 88 NonOwningModuleMap live_modules_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); | 90 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); |
92 }; | 91 }; |
93 | 92 |
94 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 93 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
OLD | NEW |