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

Side by Side Diff: chrome/common/chrome_content_client_ios.mm

Issue 11783038: Allow multiple WebUIControllerFactory objects to be registered. This makes is possible to implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reland after bogus revert of r175971 Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/test/base/chrome_test_suite.cc » ('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 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/string_piece.h" 8 #include "base/string_piece.h"
9 #include "chrome/common/chrome_version_info.h" 9 #include "chrome/common/chrome_version_info.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 24 matching lines...) Expand all
35 webkit::npapi::PluginList* plugin_list) { 35 webkit::npapi::PluginList* plugin_list) {
36 NOTREACHED(); 36 NOTREACHED();
37 } 37 }
38 38
39 void ChromeContentClient::AddAdditionalSchemes( 39 void ChromeContentClient::AddAdditionalSchemes(
40 std::vector<std::string>* standard_schemes, 40 std::vector<std::string>* standard_schemes,
41 std::vector<std::string>* saveable_shemes) { 41 std::vector<std::string>* saveable_shemes) {
42 // No additional schemes for iOS. 42 // No additional schemes for iOS.
43 } 43 }
44 44
45 bool ChromeContentClient::HasWebUIScheme(const GURL& url) const {
46 return url.SchemeIs(chrome::kChromeUIScheme);
47 }
48
49 bool ChromeContentClient::CanHandleWhileSwappedOut( 45 bool ChromeContentClient::CanHandleWhileSwappedOut(
50 const IPC::Message& msg) { 46 const IPC::Message& msg) {
51 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
52 return false; 48 return false;
53 } 49 }
54 50
55 std::string ChromeContentClient::GetProduct() const { 51 std::string ChromeContentClient::GetProduct() const {
56 chrome::VersionInfo version_info; 52 chrome::VersionInfo version_info;
57 std::string product("CriOS/"); 53 std::string product("CriOS/");
58 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; 54 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
(...skipping 19 matching lines...) Expand all
78 base::RefCountedStaticMemory* ChromeContentClient::GetDataResourceBytes( 74 base::RefCountedStaticMemory* ChromeContentClient::GetDataResourceBytes(
79 int resource_id) const { 75 int resource_id) const {
80 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id); 76 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
81 } 77 }
82 78
83 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const { 79 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const {
84 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); 80 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
85 } 81 }
86 82
87 } // namespace chrome 83 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698