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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1434433002: Pass distillability updates from renderer to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@model
Patch Set: address tsepez's comment Created 5 years, 1 month 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 | « no previous file | components/dom_distiller.gypi » ('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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #include "chrome/installer/util/google_update_settings.h" 102 #include "chrome/installer/util/google_update_settings.h"
103 #include "chromeos/chromeos_constants.h" 103 #include "chromeos/chromeos_constants.h"
104 #include "components/autofill/core/common/autofill_switches.h" 104 #include "components/autofill/core/common/autofill_switches.h"
105 #include "components/cdm/browser/cdm_message_filter_android.h" 105 #include "components/cdm/browser/cdm_message_filter_android.h"
106 #include "components/cloud_devices/common/cloud_devices_switches.h" 106 #include "components/cloud_devices/common/cloud_devices_switches.h"
107 #include "components/content_settings/core/browser/content_settings_utils.h" 107 #include "components/content_settings/core/browser/content_settings_utils.h"
108 #include "components/content_settings/core/browser/cookie_settings.h" 108 #include "components/content_settings/core/browser/cookie_settings.h"
109 #include "components/content_settings/core/browser/host_content_settings_map.h" 109 #include "components/content_settings/core/browser/host_content_settings_map.h"
110 #include "components/content_settings/core/common/content_settings.h" 110 #include "components/content_settings/core/common/content_settings.h"
111 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h" 111 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h"
112 #include "components/dom_distiller/core/dom_distiller_switches.h"
112 #include "components/dom_distiller/core/url_constants.h" 113 #include "components/dom_distiller/core/url_constants.h"
113 #include "components/google/core/browser/google_util.h" 114 #include "components/google/core/browser/google_util.h"
114 #include "components/metrics/client_info.h" 115 #include "components/metrics/client_info.h"
115 #include "components/net_log/chrome_net_log.h" 116 #include "components/net_log/chrome_net_log.h"
116 #include "components/pref_registry/pref_registry_syncable.h" 117 #include "components/pref_registry/pref_registry_syncable.h"
117 #include "components/rappor/rappor_utils.h" 118 #include "components/rappor/rappor_utils.h"
118 #include "components/signin/core/common/profile_management_switches.h" 119 #include "components/signin/core/common/profile_management_switches.h"
119 #include "components/translate/core/common/translate_switches.h" 120 #include "components/translate/core/common/translate_switches.h"
120 #include "components/url_formatter/url_fixer.h" 121 #include "components/url_formatter/url_fixer.h"
121 #include "components/variations/variations_associated_data.h" 122 #include "components/variations/variations_associated_data.h"
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 switches::kEnableNewBookmarkApps, 1576 switches::kEnableNewBookmarkApps,
1576 switches::kIsolateExtensions, 1577 switches::kIsolateExtensions,
1577 switches::kJavaScriptHarmony, 1578 switches::kJavaScriptHarmony,
1578 switches::kMessageLoopHistogrammer, 1579 switches::kMessageLoopHistogrammer,
1579 switches::kPpapiFlashArgs, 1580 switches::kPpapiFlashArgs,
1580 switches::kPpapiFlashPath, 1581 switches::kPpapiFlashPath,
1581 switches::kPpapiFlashVersion, 1582 switches::kPpapiFlashVersion,
1582 switches::kProfilingAtStart, 1583 switches::kProfilingAtStart,
1583 switches::kProfilingFile, 1584 switches::kProfilingFile,
1584 switches::kProfilingFlush, 1585 switches::kProfilingFlush,
1586 switches::kReaderModeHeuristics,
1585 switches::kUnsafelyTreatInsecureOriginAsSecure, 1587 switches::kUnsafelyTreatInsecureOriginAsSecure,
1586 translate::switches::kTranslateSecurityOrigin, 1588 translate::switches::kTranslateSecurityOrigin,
1587 }; 1589 };
1588 1590
1589 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 1591 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
1590 arraysize(kSwitchNames)); 1592 arraysize(kSwitchNames));
1591 } else if (process_type == switches::kUtilityProcess) { 1593 } else if (process_type == switches::kUtilityProcess) {
1592 #if defined(ENABLE_EXTENSIONS) 1594 #if defined(ENABLE_EXTENSIONS)
1593 static const char* const kSwitchNames[] = { 1595 static const char* const kSwitchNames[] = {
1594 extensions::switches::kAllowHTTPBackgroundPage, 1596 extensions::switches::kAllowHTTPBackgroundPage,
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2765 if (channel <= kMaxDisableEncryptionChannel) { 2767 if (channel <= kMaxDisableEncryptionChannel) {
2766 static const char* const kWebRtcDevSwitchNames[] = { 2768 static const char* const kWebRtcDevSwitchNames[] = {
2767 switches::kDisableWebRtcEncryption, 2769 switches::kDisableWebRtcEncryption,
2768 }; 2770 };
2769 to_command_line->CopySwitchesFrom(from_command_line, 2771 to_command_line->CopySwitchesFrom(from_command_line,
2770 kWebRtcDevSwitchNames, 2772 kWebRtcDevSwitchNames,
2771 arraysize(kWebRtcDevSwitchNames)); 2773 arraysize(kWebRtcDevSwitchNames));
2772 } 2774 }
2773 } 2775 }
2774 #endif // defined(ENABLE_WEBRTC) 2776 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | components/dom_distiller.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698