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

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

Issue 2741343015: Add a BrowserState* parameter to GetEarlyPageScript(). (Closed)
Patch Set: Apply review comments. Created 3 years, 9 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/test/fakes/test_web_client.mm ('k') | ios/web/public/web_client.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 #ifndef IOS_WEB_PUBLIC_WEB_CLIENT_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_CLIENT_H_
6 #define IOS_WEB_PUBLIC_WEB_CLIENT_H_ 6 #define IOS_WEB_PUBLIC_WEB_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // view-source is allowed. 101 // view-source is allowed.
102 virtual void GetAdditionalWebUISchemes( 102 virtual void GetAdditionalWebUISchemes(
103 std::vector<std::string>* additional_schemes) {} 103 std::vector<std::string>* additional_schemes) {}
104 104
105 // Gives the embedder a chance to add url rewriters to the BrowserURLRewriter 105 // Gives the embedder a chance to add url rewriters to the BrowserURLRewriter
106 // singleton. 106 // singleton.
107 virtual void PostBrowserURLRewriterCreation(BrowserURLRewriter* rewriter) {} 107 virtual void PostBrowserURLRewriterCreation(BrowserURLRewriter* rewriter) {}
108 108
109 // Gives the embedder a chance to provide the JavaScript to be injected into 109 // Gives the embedder a chance to provide the JavaScript to be injected into
110 // the web view as early as possible. Result must not be nil. 110 // the web view as early as possible. Result must not be nil.
111 virtual NSString* GetEarlyPageScript() const; 111 virtual NSString* GetEarlyPageScript(BrowserState* browser_state) const;
112 112
113 // Informs the embedder that a certificate error has occurred. If 113 // Informs the embedder that a certificate error has occurred. If
114 // |overridable| is true, the user can ignore the error and continue. The 114 // |overridable| is true, the user can ignore the error and continue. The
115 // embedder can call the |callback| asynchronously (an argument of true means 115 // embedder can call the |callback| asynchronously (an argument of true means
116 // that |cert_error| should be ignored and web// should load the page). 116 // that |cert_error| should be ignored and web// should load the page).
117 virtual void AllowCertificateError( 117 virtual void AllowCertificateError(
118 WebState* web_state, 118 WebState* web_state,
119 int cert_error, 119 int cert_error,
120 const net::SSLInfo& ssl_info, 120 const net::SSLInfo& ssl_info,
121 const GURL& request_url, 121 const GURL& request_url,
122 bool overridable, 122 bool overridable,
123 const base::Callback<void(bool)>& callback); 123 const base::Callback<void(bool)>& callback);
124 124
125 // Provides parameters for initializing the global task scheduler. If 125 // Provides parameters for initializing the global task scheduler. If
126 // |params_vector| is empty, default parameters are used. 126 // |params_vector| is empty, default parameters are used.
127 virtual void GetTaskSchedulerInitializationParams( 127 virtual void GetTaskSchedulerInitializationParams(
128 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 128 std::vector<base::SchedulerWorkerPoolParams>* params_vector,
129 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* 129 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
130 index_to_traits_callback) {} 130 index_to_traits_callback) {}
131 131
132 // Performs any necessary PostTask API redirection to the task scheduler. 132 // Performs any necessary PostTask API redirection to the task scheduler.
133 virtual void PerformExperimentalTaskSchedulerRedirections() {} 133 virtual void PerformExperimentalTaskSchedulerRedirections() {}
134 }; 134 };
135 135
136 } // namespace web 136 } // namespace web
137 137
138 #endif // IOS_WEB_PUBLIC_WEB_CLIENT_H_ 138 #endif // IOS_WEB_PUBLIC_WEB_CLIENT_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_client.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698