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

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

Issue 14273007: Add a switch to Chromium to enable/disable 'image/webp' accept header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('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) 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 // 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 switches::kEnableExperimentalWebKitFeatures, 826 switches::kEnableExperimentalWebKitFeatures,
827 switches::kEnableFixedLayout, 827 switches::kEnableFixedLayout,
828 switches::kEnableDeferredImageDecoding, 828 switches::kEnableDeferredImageDecoding,
829 switches::kEnableGPUServiceLogging, 829 switches::kEnableGPUServiceLogging,
830 switches::kEnableGPUClientLogging, 830 switches::kEnableGPUClientLogging,
831 switches::kEnableGpuClientTracing, 831 switches::kEnableGpuClientTracing,
832 switches::kEnableGpuBenchmarking, 832 switches::kEnableGpuBenchmarking,
833 switches::kEnableMemoryBenchmarking, 833 switches::kEnableMemoryBenchmarking,
834 switches::kEnableLogging, 834 switches::kEnableLogging,
835 switches::kEnableVsyncNotification, 835 switches::kEnableVsyncNotification,
836 switches::kEnableWebPInAcceptHeader,
836 switches::kDisableMediaSource, 837 switches::kDisableMediaSource,
837 switches::kDisableRendererSideMixing, 838 switches::kDisableRendererSideMixing,
838 switches::kEnableStrictSiteIsolation, 839 switches::kEnableStrictSiteIsolation,
839 switches::kDisableFullScreen, 840 switches::kDisableFullScreen,
840 switches::kEnableNewDialogStyle, 841 switches::kEnableNewDialogStyle,
841 #if defined(ENABLE_PLUGINS) 842 #if defined(ENABLE_PLUGINS)
842 switches::kEnablePepperTesting, 843 switches::kEnablePepperTesting,
843 switches::kDisablePepper3d, 844 switches::kDisablePepper3d,
844 #endif 845 #endif
845 switches::kEnablePreparsedJsCaching, 846 switches::kEnablePreparsedJsCaching,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 cc::switches::kShowOccludingRects, 935 cc::switches::kShowOccludingRects,
935 cc::switches::kShowPropertyChangedRects, 936 cc::switches::kShowPropertyChangedRects,
936 cc::switches::kShowReplicaScreenSpaceRects, 937 cc::switches::kShowReplicaScreenSpaceRects,
937 cc::switches::kShowScreenSpaceRects, 938 cc::switches::kShowScreenSpaceRects,
938 cc::switches::kShowSurfaceDamageRects, 939 cc::switches::kShowSurfaceDamageRects,
939 cc::switches::kSlowDownRasterScaleFactor, 940 cc::switches::kSlowDownRasterScaleFactor,
940 cc::switches::kTopControlsHeight, 941 cc::switches::kTopControlsHeight,
941 cc::switches::kTopControlsHideThreshold, 942 cc::switches::kTopControlsHideThreshold,
942 cc::switches::kTopControlsShowThreshold, 943 cc::switches::kTopControlsShowThreshold,
943 cc::switches::kTraceAllRenderedFrames, 944 cc::switches::kTraceAllRenderedFrames,
944 cc::switches::kTraceOverdraw 945 cc::switches::kTraceOverdraw,
945 }; 946 };
946 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 947 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
947 arraysize(kSwitchNames)); 948 arraysize(kSwitchNames));
948 949
949 // Disable databases in incognito mode. 950 // Disable databases in incognito mode.
950 if (GetBrowserContext()->IsOffTheRecord() && 951 if (GetBrowserContext()->IsOffTheRecord() &&
951 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 952 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
952 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 953 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
953 #if defined(OS_ANDROID) 954 #if defined(OS_ANDROID)
954 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); 955 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging);
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 TRACE_EVENT0("renderer_host", 1721 TRACE_EVENT0("renderer_host",
1721 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1722 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1722 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1723 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1723 ack_params.sync_point = 0; 1724 ack_params.sync_point = 0;
1724 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1725 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1725 gpu_process_host_id, 1726 gpu_process_host_id,
1726 ack_params); 1727 ack_params);
1727 } 1728 }
1728 1729
1729 } // namespace content 1730 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698