| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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> |
| 11 #include <queue> | 11 #include <queue> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Sends a message to the plugin process to request creation of a new channel | 94 // Sends a message to the plugin process to request creation of a new channel |
| 95 // for the given mime type. | 95 // for the given mime type. |
| 96 void RequestPluginChannel(ResourceMessageFilter* renderer_message_filter, | 96 void RequestPluginChannel(ResourceMessageFilter* renderer_message_filter, |
| 97 const std::string& mime_type, | 97 const std::string& mime_type, |
| 98 IPC::Message* reply_msg); | 98 IPC::Message* reply_msg); |
| 99 // Message handlers. | 99 // Message handlers. |
| 100 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); | 100 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); |
| 101 void OnGetPluginFinderUrl(std::string* plugin_finder_url); | 101 void OnGetPluginFinderUrl(std::string* plugin_finder_url); |
| 102 void OnGetCookies(uint32 request_context, const GURL& url, | 102 void OnGetCookies(uint32 request_context, const GURL& url, |
| 103 std::string* cookies); | 103 std::string* cookies); |
| 104 void OnAccessFiles(int process_id, const std::vector<std::string>& files, |
| 105 bool* allowed); |
| 104 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 106 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
| 105 void OnPluginMessage(const std::vector<uint8>& data); | 107 void OnPluginMessage(const std::vector<uint8>& data); |
| 106 | 108 |
| 107 #if defined(OS_WIN) | 109 #if defined(OS_WIN) |
| 108 void OnPluginWindowDestroyed(HWND window, HWND parent); | 110 void OnPluginWindowDestroyed(HWND window, HWND parent); |
| 109 void OnDownloadUrl(const std::string& url, int source_pid, | 111 void OnDownloadUrl(const std::string& url, int source_pid, |
| 110 gfx::NativeWindow caller_window); | 112 gfx::NativeWindow caller_window); |
| 111 #endif | 113 #endif |
| 112 | 114 |
| 113 #if defined(OS_LINUX) | 115 #if defined(OS_LINUX) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 143 | 145 |
| 144 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
| 145 // Tracks plugin parent windows created on the UI thread. | 147 // Tracks plugin parent windows created on the UI thread. |
| 146 std::set<HWND> plugin_parent_windows_set_; | 148 std::set<HWND> plugin_parent_windows_set_; |
| 147 #endif | 149 #endif |
| 148 | 150 |
| 149 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 151 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
| 150 }; | 152 }; |
| 151 | 153 |
| 152 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 154 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |