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

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

Issue 2773283002: media: Simplify CdmHostFile(s) (Closed)
Patch Set: comments addressed Created 3 years, 8 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 15 matching lines...) Expand all
26 #include "content/common/content_switches_internal.h" 26 #include "content/common/content_switches_internal.h"
27 #include "content/public/browser/content_browser_client.h" 27 #include "content/public/browser/content_browser_client.h"
28 #include "content/public/common/content_constants.h" 28 #include "content/public/common/content_constants.h"
29 #include "content/public/common/content_switches.h" 29 #include "content/public/common/content_switches.h"
30 #include "content/public/common/mojo_channel_switches.h" 30 #include "content/public/common/mojo_channel_switches.h"
31 #include "content/public/common/pepper_plugin_info.h" 31 #include "content/public/common/pepper_plugin_info.h"
32 #include "content/public/common/process_type.h" 32 #include "content/public/common/process_type.h"
33 #include "content/public/common/sandbox_type.h" 33 #include "content/public/common/sandbox_type.h"
34 #include "content/public/common/sandboxed_process_launcher_delegate.h" 34 #include "content/public/common/sandboxed_process_launcher_delegate.h"
35 #include "content/public/common/service_names.mojom.h" 35 #include "content/public/common/service_names.mojom.h"
36 #include "media/base/media_switches.h"
37 #include "mojo/edk/embedder/embedder.h" 36 #include "mojo/edk/embedder/embedder.h"
38 #include "net/base/network_change_notifier.h" 37 #include "net/base/network_change_notifier.h"
39 #include "ppapi/proxy/ppapi_messages.h" 38 #include "ppapi/proxy/ppapi_messages.h"
40 #include "ui/base/ui_base_switches.h" 39 #include "ui/base/ui_base_switches.h"
41 40
42 #if defined(OS_POSIX) 41 #if defined(OS_POSIX)
43 #include "content/public/browser/zygote_handle_linux.h" 42 #include "content/public/browser/zygote_handle_linux.h"
44 #endif // defined(OS_POSIX) 43 #endif // defined(OS_POSIX)
45 44
46 #if defined(OS_WIN) 45 #if defined(OS_WIN)
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 }; 392 };
394 cmd_line->CopySwitchesFrom(browser_command_line, kCommonForwardSwitches, 393 cmd_line->CopySwitchesFrom(browser_command_line, kCommonForwardSwitches,
395 arraysize(kCommonForwardSwitches)); 394 arraysize(kCommonForwardSwitches));
396 395
397 if (!is_broker_) { 396 if (!is_broker_) {
398 static const char* const kPluginForwardSwitches[] = { 397 static const char* const kPluginForwardSwitches[] = {
399 switches::kDisableSeccompFilterSandbox, 398 switches::kDisableSeccompFilterSandbox,
400 #if defined(OS_MACOSX) 399 #if defined(OS_MACOSX)
401 switches::kEnableSandboxLogging, 400 switches::kEnableSandboxLogging,
402 #endif 401 #endif
403 // Need to tell CdmHostFile(s) to ignore missing CDM host files.
404 switches::kIgnoreMissingCdmHostFile,
405 switches::kNoSandbox, 402 switches::kNoSandbox,
406 switches::kPpapiStartupDialog, 403 switches::kPpapiStartupDialog,
407 }; 404 };
408 cmd_line->CopySwitchesFrom(browser_command_line, kPluginForwardSwitches, 405 cmd_line->CopySwitchesFrom(browser_command_line, kPluginForwardSwitches,
409 arraysize(kPluginForwardSwitches)); 406 arraysize(kPluginForwardSwitches));
410 407
411 // Copy any flash args over if necessary. 408 // Copy any flash args over if necessary.
412 // TODO(vtl): Stop passing flash args in the command line, or windows is 409 // TODO(vtl): Stop passing flash args in the command line, or windows is
413 // going to explode. 410 // going to explode.
414 std::string existing_args = 411 std::string existing_args =
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // sent_requests_ queue should be the one that the plugin just created. 550 // sent_requests_ queue should be the one that the plugin just created.
554 Client* client = sent_requests_.front(); 551 Client* client = sent_requests_.front();
555 sent_requests_.pop(); 552 sent_requests_.pop();
556 553
557 const ChildProcessData& data = process_->GetData(); 554 const ChildProcessData& data = process_->GetData();
558 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), 555 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle),
559 data.id); 556 data.id);
560 } 557 }
561 558
562 } // namespace content 559 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_browsertest.cc ('k') | content/browser/zygote_host/zygote_communication_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698