OLD | NEW |
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_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const std::string& embedder_channel_name, | 53 const std::string& embedder_channel_name, |
54 int embedder_container_id); | 54 int embedder_container_id); |
55 | 55 |
56 private: | 56 private: |
57 typedef std::map<std::string, scoped_refptr<GuestToEmbedderChannel> > | 57 typedef std::map<std::string, scoped_refptr<GuestToEmbedderChannel> > |
58 EmbedderChannelNameToChannelMap; | 58 EmbedderChannelNameToChannelMap; |
59 | 59 |
60 void OnLoadGuest(int instance_id, | 60 void OnLoadGuest(int instance_id, |
61 int guest_renderer_id, | 61 int guest_renderer_id, |
62 const IPC::ChannelHandle& channel_handle); | 62 const IPC::ChannelHandle& channel_handle); |
| 63 void OnAdvanceFocus(int instance_id, bool reverse); |
63 | 64 |
64 // RenderProcessObserver override. Call on render thread. | 65 // RenderProcessObserver override. Call on render thread. |
65 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 66 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
66 | 67 |
67 // Map from Host process ID to GuestToEmbedderChannel | 68 // Map from Host process ID to GuestToEmbedderChannel |
68 EmbedderChannelNameToChannelMap embedder_channels_; | 69 EmbedderChannelNameToChannelMap embedder_channels_; |
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 |
79 } // namespace content | 80 } // namespace content |
80 | 81 |
81 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ | 82 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_CHANNEL_MANAGER_H_ |
OLD | NEW |