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

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

Issue 8277018: Move content_switches to content\public\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
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/ppapi_plugin_process_host.h" 5 #include "content/browser/ppapi_plugin_process_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "content/browser/plugin_service.h" 11 #include "content/browser/plugin_service.h"
12 #include "content/browser/renderer_host/render_message_filter.h" 12 #include "content/browser/renderer_host/render_message_filter.h"
13 #include "content/common/content_switches.h"
14 #include "content/common/pepper_plugin_registry.h" 13 #include "content/common/pepper_plugin_registry.h"
14 #include "content/public/common/content_switches.h"
15 #include "ipc/ipc_switches.h" 15 #include "ipc/ipc_switches.h"
16 #include "net/base/network_change_notifier.h" 16 #include "net/base/network_change_notifier.h"
17 #include "ppapi/proxy/ppapi_messages.h" 17 #include "ppapi/proxy/ppapi_messages.h"
18 18
19 class PpapiPluginProcessHost::PluginNetworkObserver 19 class PpapiPluginProcessHost::PluginNetworkObserver
20 : public net::NetworkChangeNotifier::IPAddressObserver, 20 : public net::NetworkChangeNotifier::IPAddressObserver,
21 public net::NetworkChangeNotifier::OnlineStateObserver { 21 public net::NetworkChangeNotifier::OnlineStateObserver {
22 public: 22 public:
23 explicit PluginNetworkObserver(PpapiPluginProcessHost* process_host) 23 explicit PluginNetworkObserver(PpapiPluginProcessHost* process_host)
24 : process_host_(process_host) { 24 : process_host_(process_host) {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 ::DuplicateHandle(::GetCurrentProcess(), plugin_process, 254 ::DuplicateHandle(::GetCurrentProcess(), plugin_process,
255 renderer_process, &renderers_plugin_handle, 255 renderer_process, &renderers_plugin_handle,
256 0, FALSE, DUPLICATE_SAME_ACCESS); 256 0, FALSE, DUPLICATE_SAME_ACCESS);
257 #elif defined(OS_POSIX) 257 #elif defined(OS_POSIX)
258 // Don't need to duplicate anything on POSIX since it's just a PID. 258 // Don't need to duplicate anything on POSIX since it's just a PID.
259 base::ProcessHandle renderers_plugin_handle = plugin_process; 259 base::ProcessHandle renderers_plugin_handle = plugin_process;
260 #endif 260 #endif
261 261
262 client->OnChannelOpened(renderers_plugin_handle, channel_handle); 262 client->OnChannelOpened(renderers_plugin_handle, channel_handle);
263 } 263 }
OLDNEW
« no previous file with comments | « content/browser/plugin_service_browsertest.cc ('k') | content/browser/renderer_host/backing_store_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698