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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 2314163003: Removing and deprecating PLT DataReductionProxy UMA (Closed)
Patch Set: Created 4 years, 3 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 "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 #include "build/build_config.h" 27 #include "build/build_config.h"
28 #include "chrome/common/child_process_logging.h" 28 #include "chrome/common/child_process_logging.h"
29 #include "chrome/common/chrome_constants.h" 29 #include "chrome/common/chrome_constants.h"
30 #include "chrome/common/chrome_paths.h" 30 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/crash_keys.h" 32 #include "chrome/common/crash_keys.h"
33 #include "chrome/common/pepper_flash.h" 33 #include "chrome/common/pepper_flash.h"
34 #include "chrome/common/secure_origin_whitelist.h" 34 #include "chrome/common/secure_origin_whitelist.h"
35 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
36 #include "chrome/grit/common_resources.h" 36 #include "chrome/grit/common_resources.h"
37 #include "components/data_reduction_proxy/content/common/data_reduction_proxy_me ssages.h"
38 #include "components/dom_distiller/core/url_constants.h" 37 #include "components/dom_distiller/core/url_constants.h"
39 #include "components/version_info/version_info.h" 38 #include "components/version_info/version_info.h"
40 #include "content/public/common/cdm_info.h" 39 #include "content/public/common/cdm_info.h"
41 #include "content/public/common/content_constants.h" 40 #include "content/public/common/content_constants.h"
42 #include "content/public/common/content_switches.h" 41 #include "content/public/common/content_switches.h"
43 #include "content/public/common/url_constants.h" 42 #include "content/public/common/url_constants.h"
44 #include "content/public/common/user_agent.h" 43 #include "content/public/common/user_agent.h"
45 #include "extensions/common/constants.h" 44 #include "extensions/common/constants.h"
46 #include "gpu/config/gpu_info.h" 45 #include "gpu/config/gpu_info.h"
47 #include "net/http/http_util.h" 46 #include "net/http/http_util.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 referrer_schemes->push_back( 619 referrer_schemes->push_back(
621 {chrome::kAndroidAppScheme, url::SCHEME_WITHOUT_PORT}); 620 {chrome::kAndroidAppScheme, url::SCHEME_WITHOUT_PORT});
622 #endif 621 #endif
623 622
624 savable_schemes->push_back(extensions::kExtensionScheme); 623 savable_schemes->push_back(extensions::kExtensionScheme);
625 savable_schemes->push_back(extensions::kExtensionResourceScheme); 624 savable_schemes->push_back(extensions::kExtensionResourceScheme);
626 savable_schemes->push_back(chrome::kChromeSearchScheme); 625 savable_schemes->push_back(chrome::kChromeSearchScheme);
627 savable_schemes->push_back(dom_distiller::kDomDistillerScheme); 626 savable_schemes->push_back(dom_distiller::kDomDistillerScheme);
628 } 627 }
629 628
630 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* message) {
631 return message->type() ==
632 DataReductionProxyViewHostMsg_IsDataReductionProxy::ID;
633 }
634
635 std::string ChromeContentClient::GetProduct() const { 629 std::string ChromeContentClient::GetProduct() const {
636 return ::GetProduct(); 630 return ::GetProduct();
637 } 631 }
638 632
639 std::string ChromeContentClient::GetUserAgent() const { 633 std::string ChromeContentClient::GetUserAgent() const {
640 return ::GetUserAgent(); 634 return ::GetUserAgent();
641 } 635 }
642 636
643 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const { 637 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const {
644 return l10n_util::GetStringUTF16(message_id); 638 return l10n_util::GetStringUTF16(message_id);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy()); 724 origin_trial_policy_ = base::WrapUnique(new ChromeOriginTrialPolicy());
731 } 725 }
732 return origin_trial_policy_.get(); 726 return origin_trial_policy_.get();
733 } 727 }
734 728
735 #if defined(OS_ANDROID) 729 #if defined(OS_ANDROID)
736 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { 730 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() {
737 return new ChromeMediaClientAndroid(); 731 return new ChromeMediaClientAndroid();
738 } 732 }
739 #endif // OS_ANDROID 733 #endif // OS_ANDROID
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698