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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_registry.h

Issue 9968097: Browser Plugin: Renderer-side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make RefCounted<GuestToEmbedderChannel> a friend Created 8 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_REGISTRY_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_REGISTRY_H_
7 #pragma once
8
9 #include "base/id_map.h"
10 #include "base/process.h"
11 #include "webkit/plugins/ppapi/plugin_delegate.h"
12
13 namespace content {
14
15 // This class holds references to all of the known live browser plugin
16 // modules. There is one browser plugin module per guest renderer process.
17 class BrowserPluginRegistry
18 : public webkit::ppapi::PluginDelegate::ModuleLifetime {
19 public:
20 BrowserPluginRegistry();
21 virtual ~BrowserPluginRegistry();
22
23 webkit::ppapi::PluginModule* GetModule(int guest_process_id);
24 void AddModule(int guest_process_id,
25 webkit::ppapi::PluginModule* module);
26
27 // ModuleLifetime implementation.
28 virtual void PluginModuleDead(
29 webkit::ppapi::PluginModule* dead_module) OVERRIDE;
30
31 private:
32 IDMap<webkit::ppapi::PluginModule> modules_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698