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

Side by Side Diff: content/common/pepper_plugin_registry.h

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
OLDNEW
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 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 webkit::ppapi::PluginModule::EntryPoints internal_entry_points; 46 webkit::ppapi::PluginModule::EntryPoints internal_entry_points;
47 }; 47 };
48 48
49 // This class holds references to all of the known pepper plugin modules. 49 // This class holds references to all of the known pepper plugin modules.
50 // 50 //
51 // It keeps two lists. One list of preloaded in-process modules, and one list 51 // It keeps two lists. One list of preloaded in-process modules, and one list
52 // is a list of all live modules (some of which may be out-of-process and hence 52 // is a list of all live modules (some of which may be out-of-process and hence
53 // not preloaded). 53 // not preloaded).
54 class PepperPluginRegistry 54 class PepperPluginRegistry
55 : public webkit::ppapi::PluginDelegate::ModuleLifetime, 55 : public webkit::ppapi::PluginDelegate::ModuleLifetime,
56 public pp::proxy::ProxyChannel::Delegate { 56 public ppapi::proxy::ProxyChannel::Delegate {
57 public: 57 public:
58 ~PepperPluginRegistry(); 58 ~PepperPluginRegistry();
59 59
60 static PepperPluginRegistry* GetInstance(); 60 static PepperPluginRegistry* GetInstance();
61 61
62 // Computes the list of known pepper plugins. 62 // Computes the list of known pepper plugins.
63 // 63 //
64 // This method is static so that it can be used by the browser process, which 64 // This method is static so that it can be used by the browser process, which
65 // has no need to load the pepper plugin modules. It will re-compute the 65 // has no need to load the pepper plugin modules. It will re-compute the
66 // plugin list every time it is called. Generally, code in the registry should 66 // plugin list every time it is called. Generally, code in the registry should
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // non-crashed modules. If an out-of-process module crashes, it may 115 // non-crashed modules. If an out-of-process module crashes, it may
116 // continue as long as there are WebKit references to it, but it will not 116 // continue as long as there are WebKit references to it, but it will not
117 // appear in this list. 117 // appear in this list.
118 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; 118 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap;
119 NonOwningModuleMap live_modules_; 119 NonOwningModuleMap live_modules_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); 121 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry);
122 }; 122 };
123 123
124 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ 124 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698