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

Side by Side Diff: content/renderer/browser_plugin/old/browser_plugin_channel_manager.h

Issue 10829219: Browser Plugin: Move to old namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 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) 2012 The Chromium Authors. All rights reserved. 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 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_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_CHANNEL_MANAGER_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_CHANNEL_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
11 #include "content/public/renderer/render_process_observer.h" 11 #include "content/public/renderer/render_process_observer.h"
12 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" 12 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h"
13 #include "content/renderer/render_view_impl.h" 13 #include "content/renderer/render_view_impl.h"
14 14
15 class GuestToEmbedderChannel; 15 class GuestToEmbedderChannel;
16 struct ViewMsg_New_Params; 16 struct ViewMsg_New_Params;
17 17
18 namespace content { 18 namespace content {
19 namespace old {
19 20
20 // BrowserPluginChannelManager manages the lifetime of GuestToEmbedderChannels. 21 // BrowserPluginChannelManager manages the lifetime of GuestToEmbedderChannels.
21 // When a new RenderView is requested, it checks the embedder channel name 22 // When a new RenderView is requested, it checks the embedder channel name
22 // in ViewMsg_New_Params and decides whether to reuse an existing channel or 23 // in ViewMsg_New_Params and decides whether to reuse an existing channel or
23 // create a new channel. On the guest renderer process, it informs a 24 // create a new channel. On the guest renderer process, it informs a
24 // RenderView once a channel has been established with its embedder. 25 // RenderView once a channel has been established with its embedder.
25 // On the embedder side, it tells BrowserPlugin to load the guest 26 // On the embedder side, it tells BrowserPlugin to load the guest
26 // PluginInstance once a channel has been established. 27 // PluginInstance once a channel has been established.
27 class BrowserPluginChannelManager 28 class BrowserPluginChannelManager
28 : public RenderProcessObserver { 29 : public RenderProcessObserver {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 // Map from <embedder_channel_name, embedder_container_id> to RenderViewImpl 71 // Map from <embedder_channel_name, embedder_container_id> to RenderViewImpl
71 // that points to RenderViewImpl guests that have been constructed but don't 72 // that points to RenderViewImpl guests that have been constructed but don't
72 // have a PP_Instance and so they aren't yet ready to composite. 73 // have a PP_Instance and so they aren't yet ready to composite.
73 std::map<std::pair<std::string, int>, 74 std::map<std::pair<std::string, int>,
74 base::WeakPtr<RenderViewImpl> > pending_guests_; 75 base::WeakPtr<RenderViewImpl> > pending_guests_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(BrowserPluginChannelManager); 77 DISALLOW_COPY_AND_ASSIGN(BrowserPluginChannelManager);
77 }; 78 };
78 79
80 } // namespace old
79 } // namespace content 81 } // namespace content
80 82
81 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ 83 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698