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

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

Issue 2365273004: Initial implementation for sharing field trial state (win) (Closed)
Patch Set: Remove windows macro causing compilation issue Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 if (!plugin_launcher.empty()) 452 if (!plugin_launcher.empty())
453 cmd_line->PrependWrapper(plugin_launcher); 453 cmd_line->PrependWrapper(plugin_launcher);
454 454
455 // On posix, never use the zygote for the broker. Also, only use the zygote if 455 // On posix, never use the zygote for the broker. Also, only use the zygote if
456 // we are not using a plugin launcher - having a plugin launcher means we need 456 // we are not using a plugin launcher - having a plugin launcher means we need
457 // to use another process instead of just forking the zygote. 457 // to use another process instead of just forking the zygote.
458 process_->Launch( 458 process_->Launch(
459 new PpapiPluginSandboxedProcessLauncherDelegate(is_broker_, 459 new PpapiPluginSandboxedProcessLauncherDelegate(is_broker_,
460 info, 460 info,
461 process_->GetHost()), 461 process_->GetHost()),
462 NULL,
462 cmd_line, 463 cmd_line,
463 true); 464 true);
464 return true; 465 return true;
465 } 466 }
466 467
467 void PpapiPluginProcessHost::RequestPluginChannel(Client* client) { 468 void PpapiPluginProcessHost::RequestPluginChannel(Client* client) {
468 base::ProcessHandle process_handle; 469 base::ProcessHandle process_handle;
469 int renderer_child_id; 470 int renderer_child_id;
470 client->GetPpapiChannelInfo(&process_handle, &renderer_child_id); 471 client->GetPpapiChannelInfo(&process_handle, &renderer_child_id);
471 472
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // sent_requests_ queue should be the one that the plugin just created. 561 // sent_requests_ queue should be the one that the plugin just created.
561 Client* client = sent_requests_.front(); 562 Client* client = sent_requests_.front();
562 sent_requests_.pop(); 563 sent_requests_.pop();
563 564
564 const ChildProcessData& data = process_->GetData(); 565 const ChildProcessData& data = process_->GetData();
565 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), 566 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle),
566 data.id); 567 data.id);
567 } 568 }
568 569
569 } // namespace content 570 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698