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

Side by Side Diff: content/browser/plugin_process_host.cc

Issue 9117006: Rename BrowserChildProcessHost implementation class to BrowserChildProcessHostImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months 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
« no previous file with comments | « content/browser/plugin_process_host.h ('k') | content/browser/plugin_process_host_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/plugin_process_host.h" 5 #include "content/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) && !defined(USE_AURA) 7 #if defined(OS_WIN) && !defined(USE_AURA)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
11 #endif 11 #endif
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/base_switches.h" 15 #include "base/base_switches.h"
16 #include "base/bind.h" 16 #include "base/bind.h"
17 #include "base/command_line.h" 17 #include "base/command_line.h"
18 #include "base/file_path.h" 18 #include "base/file_path.h"
19 #include "base/file_util.h" 19 #include "base/file_util.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/string_util.h" 22 #include "base/string_util.h"
23 #include "base/utf_string_conversions.h" 23 #include "base/utf_string_conversions.h"
24 #include "content/browser/browser_child_process_host.h" 24 #include "content/browser/browser_child_process_host_impl.h"
25 #include "content/browser/plugin_service_impl.h" 25 #include "content/browser/plugin_service_impl.h"
26 #include "content/common/child_process_host_impl.h" 26 #include "content/common/child_process_host_impl.h"
27 #include "content/common/plugin_messages.h" 27 #include "content/common/plugin_messages.h"
28 #include "content/common/resource_messages.h" 28 #include "content/common/resource_messages.h"
29 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
31 #include "content/public/browser/notification_types.h" 31 #include "content/public/browser/notification_types.h"
32 #include "content/public/common/content_switches.h" 32 #include "content/public/common/content_switches.h"
33 #include "content/public/common/process_type.h" 33 #include "content/public/common/process_type.h"
34 #include "ipc/ipc_switches.h" 34 #include "ipc/ipc_switches.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 GtkNativeViewManager::GetInstance()->GetXIDForId(output, id); 113 GtkNativeViewManager::GetInstance()->GetXIDForId(output, id);
114 #endif 114 #endif
115 } 115 }
116 #endif // defined(TOOLKIT_USES_GTK) 116 #endif // defined(TOOLKIT_USES_GTK)
117 117
118 PluginProcessHost::PluginProcessHost() 118 PluginProcessHost::PluginProcessHost()
119 #if defined(OS_MACOSX) 119 #if defined(OS_MACOSX)
120 : plugin_cursor_visible_(true) 120 : plugin_cursor_visible_(true)
121 #endif 121 #endif
122 { 122 {
123 process_.reset(new BrowserChildProcessHost( 123 process_.reset(
124 content::PROCESS_TYPE_PLUGIN, this)); 124 new BrowserChildProcessHostImpl(content::PROCESS_TYPE_PLUGIN, this));
125 } 125 }
126 126
127 PluginProcessHost::~PluginProcessHost() { 127 PluginProcessHost::~PluginProcessHost() {
128 #if defined(OS_WIN) && !defined(USE_AURA) 128 #if defined(OS_WIN) && !defined(USE_AURA)
129 // We erase HWNDs from the plugin_parent_windows_set_ when we receive a 129 // We erase HWNDs from the plugin_parent_windows_set_ when we receive a
130 // notification that the window is being destroyed. If we don't receive this 130 // notification that the window is being destroyed. If we don't receive this
131 // notification and the PluginProcessHost instance is being destroyed, it 131 // notification and the PluginProcessHost instance is being destroyed, it
132 // means that the plugin process crashed. We paint a sad face in this case in 132 // means that the plugin process crashed. We paint a sad face in this case in
133 // the renderer process. To ensure that the sad face shows up, and we don't 133 // the renderer process. To ensure that the sad face shows up, and we don't
134 // leak HWNDs, we should destroy existing plugin parent windows. 134 // leak HWNDs, we should destroy existing plugin parent windows.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 429 }
430 430
431 void PluginProcessHost::OnChannelCreated( 431 void PluginProcessHost::OnChannelCreated(
432 const IPC::ChannelHandle& channel_handle) { 432 const IPC::ChannelHandle& channel_handle) {
433 Client* client = sent_requests_.front(); 433 Client* client = sent_requests_.front();
434 434
435 if (client) 435 if (client)
436 client->OnChannelOpened(channel_handle); 436 client->OnChannelOpened(channel_handle);
437 sent_requests_.pop_front(); 437 sent_requests_.pop_front();
438 } 438 }
OLDNEW
« no previous file with comments | « content/browser/plugin_process_host.h ('k') | content/browser/plugin_process_host_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698