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

Side by Side Diff: ios/web/public/web_client.mm

Issue 1996723002: Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to address newly added use Created 4 years, 7 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
« no previous file with comments | « ios/web/public/web_client.h ('k') | ios/web/webui/crw_web_ui_manager.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/public/web_client.h" 5 #include "ios/web/public/web_client.h"
6 6
7 #include <Foundation/Foundation.h> 7 #include <Foundation/Foundation.h>
8 8
9 namespace web { 9 namespace web {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 base::string16 WebClient::GetLocalizedString(int message_id) const { 59 base::string16 WebClient::GetLocalizedString(int message_id) const {
60 return base::string16(); 60 return base::string16();
61 } 61 }
62 62
63 base::StringPiece WebClient::GetDataResource( 63 base::StringPiece WebClient::GetDataResource(
64 int resource_id, 64 int resource_id,
65 ui::ScaleFactor scale_factor) const { 65 ui::ScaleFactor scale_factor) const {
66 return base::StringPiece(); 66 return base::StringPiece();
67 } 67 }
68 68
69 base::RefCountedStaticMemory* WebClient::GetDataResourceBytes( 69 base::RefCountedMemory* WebClient::GetDataResourceBytes(int resource_id) const {
70 int resource_id) const {
71 return nullptr; 70 return nullptr;
72 } 71 }
73 72
74 NSString* WebClient::GetEarlyPageScript() const { 73 NSString* WebClient::GetEarlyPageScript() const {
75 return @""; 74 return @"";
76 } 75 }
77 76
78 void WebClient::AllowCertificateError( 77 void WebClient::AllowCertificateError(
79 WebState* web_state, 78 WebState* web_state,
80 int cert_error, 79 int cert_error,
81 const net::SSLInfo& ssl_info, 80 const net::SSLInfo& ssl_info,
82 const GURL& request_url, 81 const GURL& request_url,
83 bool overridable, 82 bool overridable,
84 const base::Callback<void(bool)>& callback) { 83 const base::Callback<void(bool)>& callback) {
85 callback.Run(false); 84 callback.Run(false);
86 } 85 }
87 86
88 } // namespace web 87 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/web_client.h ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698