OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 std::string* cookies); | 103 std::string* cookies); |
104 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 104 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
105 void OnPluginMessage(const std::vector<uint8>& data); | 105 void OnPluginMessage(const std::vector<uint8>& data); |
106 | 106 |
107 #if defined(OS_WIN) | 107 #if defined(OS_WIN) |
108 void OnPluginWindowDestroyed(HWND window, HWND parent); | 108 void OnPluginWindowDestroyed(HWND window, HWND parent); |
109 void OnDownloadUrl(const std::string& url, int source_pid, | 109 void OnDownloadUrl(const std::string& url, int source_pid, |
110 gfx::NativeWindow caller_window); | 110 gfx::NativeWindow caller_window); |
111 #endif | 111 #endif |
112 | 112 |
| 113 #if defined(OS_LINUX) |
| 114 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); |
| 115 #endif |
| 116 |
113 virtual bool CanShutdown() { return sent_requests_.empty(); } | 117 virtual bool CanShutdown() { return sent_requests_.empty(); } |
114 | 118 |
115 struct ChannelRequest { | 119 struct ChannelRequest { |
116 ChannelRequest(ResourceMessageFilter* renderer_message_filter, | 120 ChannelRequest(ResourceMessageFilter* renderer_message_filter, |
117 const std::string& m, IPC::Message* r) : | 121 const std::string& m, IPC::Message* r) : |
118 mime_type(m), reply_msg(r), | 122 mime_type(m), reply_msg(r), |
119 renderer_message_filter_(renderer_message_filter) { } | 123 renderer_message_filter_(renderer_message_filter) { } |
120 std::string mime_type; | 124 std::string mime_type; |
121 IPC::Message* reply_msg; | 125 IPC::Message* reply_msg; |
122 scoped_refptr<ResourceMessageFilter> renderer_message_filter_; | 126 scoped_refptr<ResourceMessageFilter> renderer_message_filter_; |
(...skipping 16 matching lines...) Expand all Loading... |
139 | 143 |
140 #if defined(OS_WIN) | 144 #if defined(OS_WIN) |
141 // Tracks plugin parent windows created on the UI thread. | 145 // Tracks plugin parent windows created on the UI thread. |
142 std::set<HWND> plugin_parent_windows_set_; | 146 std::set<HWND> plugin_parent_windows_set_; |
143 #endif | 147 #endif |
144 | 148 |
145 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 149 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
146 }; | 150 }; |
147 | 151 |
148 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 152 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |