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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (Closed)
Patch Set: fix tests Created 3 years, 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 const base::CommandLine& browser_cmd, 1678 const base::CommandLine& browser_cmd,
1679 base::CommandLine* renderer_cmd) { 1679 base::CommandLine* renderer_cmd) {
1680 // Propagate the following switches to the renderer command line (along 1680 // Propagate the following switches to the renderer command line (along
1681 // with any associated values) if present in the browser command line. 1681 // with any associated values) if present in the browser command line.
1682 static const char* const kSwitchNames[] = { 1682 static const char* const kSwitchNames[] = {
1683 switches::kAgcStartupMinVolume, 1683 switches::kAgcStartupMinVolume,
1684 switches::kAecRefinedAdaptiveFilter, 1684 switches::kAecRefinedAdaptiveFilter,
1685 switches::kAllowLoopbackInPeerConnection, 1685 switches::kAllowLoopbackInPeerConnection,
1686 switches::kAndroidFontsPath, 1686 switches::kAndroidFontsPath,
1687 switches::kAudioBufferSize, 1687 switches::kAudioBufferSize,
1688 switches::kAutoplayPolicy,
1688 switches::kBlinkSettings, 1689 switches::kBlinkSettings,
1689 switches::kDefaultTileWidth, 1690 switches::kDefaultTileWidth,
1690 switches::kDefaultTileHeight, 1691 switches::kDefaultTileHeight,
1691 switches::kDisable2dCanvasImageChromium, 1692 switches::kDisable2dCanvasImageChromium,
1692 switches::kDisable3DAPIs, 1693 switches::kDisable3DAPIs,
1693 switches::kDisableAcceleratedJpegDecoding, 1694 switches::kDisableAcceleratedJpegDecoding,
1694 switches::kDisableAcceleratedVideoDecode, 1695 switches::kDisableAcceleratedVideoDecode,
1695 switches::kDisableBackgroundTimerThrottling, 1696 switches::kDisableBackgroundTimerThrottling,
1696 switches::kDisableBlinkFeatures, 1697 switches::kDisableBlinkFeatures,
1697 switches::kDisableBreakpad, 1698 switches::kDisableBreakpad,
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3077 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3077 3078
3078 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3079 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3079 // Capture the error message in a crash key value. 3080 // Capture the error message in a crash key value.
3080 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3081 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3081 bad_message::ReceivedBadMessage(render_process_id, 3082 bad_message::ReceivedBadMessage(render_process_id,
3082 bad_message::RPH_MOJO_PROCESS_ERROR); 3083 bad_message::RPH_MOJO_PROCESS_ERROR);
3083 } 3084 }
3084 3085
3085 } // namespace content 3086 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698