| OLD | NEW |
| 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 #include "chrome/common/chrome_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
| 10 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
| 11 #include "content/public/common/user_agent.h" | 11 #include "content/public/common/user_agent.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 #include "url/url_util.h" |
| 15 | 16 |
| 16 // TODO(ios): Investigate merging with chrome_content_client.cc; this would | 17 // TODO(ios): Investigate merging with chrome_content_client.cc; this would |
| 17 // requiring either a lot of ifdefing, or spliting the file into parts. | 18 // requiring either a lot of ifdefing, or spliting the file into parts. |
| 18 | 19 |
| 19 void ChromeContentClient::SetActiveURL(const GURL& url) { | 20 void ChromeContentClient::SetActiveURL(const GURL& url) { |
| 20 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
| 21 } | 22 } |
| 22 | 23 |
| 23 void ChromeContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) { | 24 void ChromeContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) { |
| 24 NOTIMPLEMENTED(); | 25 NOTIMPLEMENTED(); |
| 25 } | 26 } |
| 26 | 27 |
| 27 void ChromeContentClient::AddPepperPlugins( | 28 void ChromeContentClient::AddPepperPlugins( |
| 28 std::vector<content::PepperPluginInfo>* plugins) { | 29 std::vector<content::PepperPluginInfo>* plugins) { |
| 29 NOTREACHED(); | 30 NOTREACHED(); |
| 30 } | 31 } |
| 31 | 32 |
| 32 void ChromeContentClient::AddAdditionalSchemes( | 33 void ChromeContentClient::AddAdditionalSchemes( |
| 33 std::vector<std::string>* standard_schemes, | 34 std::vector<url::SchemeWithType>* standard_schemes, |
| 34 std::vector<std::string>* saveable_shemes) { | 35 std::vector<std::string>* saveable_shemes) { |
| 35 // No additional schemes for iOS. | 36 // No additional schemes for iOS. |
| 36 } | 37 } |
| 37 | 38 |
| 38 std::string ChromeContentClient::GetProduct() const { | 39 std::string ChromeContentClient::GetProduct() const { |
| 39 std::string product("CriOS/"); | 40 std::string product("CriOS/"); |
| 40 product += version_info::GetVersionNumber(); | 41 product += version_info::GetVersionNumber(); |
| 41 return product; | 42 return product; |
| 42 } | 43 } |
| 43 | 44 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 63 } | 64 } |
| 64 | 65 |
| 65 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const { | 66 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const { |
| 66 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); | 67 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); |
| 67 } | 68 } |
| 68 | 69 |
| 69 std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) { | 70 std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) { |
| 70 DCHECK(false) << "Unknown child process type!"; | 71 DCHECK(false) << "Unknown child process type!"; |
| 71 return "Unknown"; | 72 return "Unknown"; |
| 72 } | 73 } |
| OLD | NEW |