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

Side by Side Diff: chrome/browser/plugin_process_host.h

Issue 371015: Linux: Catch plugin crashes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 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 <queue>
10 #include <set> 11 #include <set>
11 #include <queue> 12 #include <string>
12 #include <vector> 13 #include <vector>
13 14
14 #include "app/gfx/native_widget_types.h" 15 #include "app/gfx/native_widget_types.h"
15 #include "base/basictypes.h" 16 #include "base/basictypes.h"
16 #include "base/scoped_ptr.h" 17 #include "base/scoped_ptr.h"
17 #include "base/task.h" 18 #include "base/task.h"
18 #include "chrome/browser/net/resolve_proxy_msg_helper.h" 19 #include "chrome/browser/net/resolve_proxy_msg_helper.h"
19 #include "chrome/browser/renderer_host/resource_message_filter.h" 20 #include "chrome/browser/renderer_host/resource_message_filter.h"
20 #include "chrome/common/child_process_host.h" 21 #include "chrome/common/child_process_host.h"
21 #include "ipc/ipc_channel_handle.h" 22 #include "ipc/ipc_channel_handle.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool* allowed); 108 bool* allowed);
108 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); 109 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
109 void OnPluginMessage(const std::vector<uint8>& data); 110 void OnPluginMessage(const std::vector<uint8>& data);
110 111
111 #if defined(OS_WIN) 112 #if defined(OS_WIN)
112 void OnPluginWindowDestroyed(HWND window, HWND parent); 113 void OnPluginWindowDestroyed(HWND window, HWND parent);
113 void OnDownloadUrl(const std::string& url, int source_child_unique_id, 114 void OnDownloadUrl(const std::string& url, int source_child_unique_id,
114 gfx::NativeWindow caller_window); 115 gfx::NativeWindow caller_window);
115 #endif 116 #endif
116 117
118 #if defined(OS_POSIX)
119 base::ProcessHandle InitHelperPosix(const CommandLine& cmd_line);
120 #endif
121
117 #if defined(OS_LINUX) 122 #if defined(OS_LINUX)
118 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); 123 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output);
119 #endif 124 #endif
120 125
121 #if defined(OS_MACOSX) 126 #if defined(OS_MACOSX)
122 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, 127 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect,
123 bool modal); 128 bool modal);
124 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, 129 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect,
125 bool modal); 130 bool modal);
126 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); 131 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Tracks full screen windows currently visible 169 // Tracks full screen windows currently visible
165 std::set<uint32> plugin_fullscreen_windows_set_; 170 std::set<uint32> plugin_fullscreen_windows_set_;
166 // Tracks modal windows currently visible 171 // Tracks modal windows currently visible
167 std::set<uint32> plugin_modal_windows_set_; 172 std::set<uint32> plugin_modal_windows_set_;
168 #endif 173 #endif
169 174
170 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); 175 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost);
171 }; 176 };
172 177
173 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ 178 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698