| OLD | NEW |
| 1 // Copyright (c) 2009 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> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Sends a message to the plugin process to request creation of a new channel | 90 // Sends a message to the plugin process to request creation of a new channel |
| 91 // for the given mime type. | 91 // for the given mime type. |
| 92 void RequestPluginChannel(ResourceMessageFilter* renderer_message_filter, | 92 void RequestPluginChannel(ResourceMessageFilter* renderer_message_filter, |
| 93 const std::string& mime_type, | 93 const std::string& mime_type, |
| 94 IPC::Message* reply_msg); | 94 IPC::Message* reply_msg); |
| 95 // Message handlers. | 95 // Message handlers. |
| 96 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); | 96 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); |
| 97 void OnGetPluginFinderUrl(std::string* plugin_finder_url); | 97 void OnGetPluginFinderUrl(std::string* plugin_finder_url); |
| 98 void OnGetCookies(uint32 request_context, const GURL& url, | 98 void OnGetCookies(uint32 request_context, const GURL& url, |
| 99 std::string* cookies); | 99 std::string* cookies); |
| 100 void OnAccessFiles(int process_id, const std::vector<std::string>& files, | 100 void OnAccessFiles(int renderer_id, const std::vector<std::string>& files, |
| 101 bool* allowed); | 101 bool* allowed); |
| 102 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 102 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
| 103 void OnPluginMessage(const std::vector<uint8>& data); | 103 void OnPluginMessage(const std::vector<uint8>& data); |
| 104 | 104 |
| 105 #if defined(OS_WIN) | 105 #if defined(OS_WIN) |
| 106 void OnPluginWindowDestroyed(HWND window, HWND parent); | 106 void OnPluginWindowDestroyed(HWND window, HWND parent); |
| 107 void OnDownloadUrl(const std::string& url, int source_child_unique_id, | 107 void OnDownloadUrl(const std::string& url, int source_child_unique_id, |
| 108 gfx::NativeWindow caller_window); | 108 gfx::NativeWindow caller_window); |
| 109 #endif | 109 #endif |
| 110 | 110 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 141 | 141 |
| 142 #if defined(OS_WIN) | 142 #if defined(OS_WIN) |
| 143 // Tracks plugin parent windows created on the UI thread. | 143 // Tracks plugin parent windows created on the UI thread. |
| 144 std::set<HWND> plugin_parent_windows_set_; | 144 std::set<HWND> plugin_parent_windows_set_; |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 147 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 150 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |