| OLD | NEW |
| 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 <memory> | 9 #include <memory> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { | 605 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { |
| 606 return message->type() == | 606 return message->type() == |
| 607 DataReductionProxyViewHostMsg_IsDataReductionProxy::ID; | 607 DataReductionProxyViewHostMsg_IsDataReductionProxy::ID; |
| 608 } | 608 } |
| 609 | 609 |
| 610 std::string ChromeContentClient::GetProduct() const { | 610 std::string ChromeContentClient::GetProduct() const { |
| 611 return ::GetProduct(); | 611 return ::GetProduct(); |
| 612 } | 612 } |
| 613 | 613 |
| 614 std::string ChromeContentClient::GetLastChange() const { |
| 615 return version_info::GetLastChange(); |
| 616 } |
| 617 |
| 614 std::string ChromeContentClient::GetUserAgent() const { | 618 std::string ChromeContentClient::GetUserAgent() const { |
| 615 return ::GetUserAgent(); | 619 return ::GetUserAgent(); |
| 616 } | 620 } |
| 617 | 621 |
| 618 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const { | 622 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const { |
| 619 return l10n_util::GetStringUTF16(message_id); | 623 return l10n_util::GetStringUTF16(message_id); |
| 620 } | 624 } |
| 621 | 625 |
| 622 base::StringPiece ChromeContentClient::GetDataResource( | 626 base::StringPiece ChromeContentClient::GetDataResource( |
| 623 int resource_id, | 627 int resource_id, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 706 |
| 703 base::StringPiece ChromeContentClient::GetOriginTrialPublicKey() { | 707 base::StringPiece ChromeContentClient::GetOriginTrialPublicKey() { |
| 704 return origin_trial_key_manager_.GetPublicKey(); | 708 return origin_trial_key_manager_.GetPublicKey(); |
| 705 } | 709 } |
| 706 | 710 |
| 707 #if defined(OS_ANDROID) | 711 #if defined(OS_ANDROID) |
| 708 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { | 712 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { |
| 709 return new ChromeMediaClientAndroid(); | 713 return new ChromeMediaClientAndroid(); |
| 710 } | 714 } |
| 711 #endif // OS_ANDROID | 715 #endif // OS_ANDROID |
| OLD | NEW |