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

Side by Side Diff: ios/web/web_state/web_state_impl.h

Issue 1423483004: Updated TODO(shreyasv) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/web_state/ui/wk_web_view_configuration_provider.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEB_STATE_WEB_STATE_IMPL_H_ 5 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 net::HttpResponseHeaders* GetHttpResponseHeaders() const; 166 net::HttpResponseHeaders* GetHttpResponseHeaders() const;
167 167
168 // Called when HTTP response headers are received. 168 // Called when HTTP response headers are received.
169 // |resource_url| is the URL associated with the headers. 169 // |resource_url| is the URL associated with the headers.
170 // This function has no visible effects until UpdateHttpResponseHeaders() is 170 // This function has no visible effects until UpdateHttpResponseHeaders() is
171 // called. 171 // called.
172 void OnHttpResponseHeadersReceived(net::HttpResponseHeaders* response_headers, 172 void OnHttpResponseHeadersReceived(net::HttpResponseHeaders* response_headers,
173 const GURL& resource_url); 173 const GURL& resource_url);
174 174
175 // Executes a JavaScript string on the page asynchronously. 175 // Executes a JavaScript string on the page asynchronously.
176 // TODO(shreyasv): Rename this to ExecuteJavaScript for consitency with 176 // TODO(shreyasv): Rename this to ExecuteJavaScript for consistency with
177 // upstream API. 177 // upstream API.
178 virtual void ExecuteJavaScriptAsync(const base::string16& script); 178 virtual void ExecuteJavaScriptAsync(const base::string16& script);
179 179
180 // Returns whether the navigation corresponding to |request| should be allowed 180 // Returns whether the navigation corresponding to |request| should be allowed
181 // to continue by asking its policy deciders. Defaults to true. 181 // to continue by asking its policy deciders. Defaults to true.
182 bool ShouldAllowRequest(NSURLRequest* request); 182 bool ShouldAllowRequest(NSURLRequest* request);
183 // Returns whether the navigation corresponding to |response| should be 183 // Returns whether the navigation corresponding to |response| should be
184 // allowed to continue by asking its policy deciders. Defaults to true. 184 // allowed to continue by asking its policy deciders. Defaults to true.
185 bool ShouldAllowResponse(NSURLResponse* response); 185 bool ShouldAllowResponse(NSURLResponse* response);
186 186
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 // Callbacks associated to command prefixes. 324 // Callbacks associated to command prefixes.
325 std::map<std::string, ScriptCommandCallback> script_command_callbacks_; 325 std::map<std::string, ScriptCommandCallback> script_command_callbacks_;
326 326
327 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); 327 DISALLOW_COPY_AND_ASSIGN(WebStateImpl);
328 }; 328 };
329 329
330 } // namespace web 330 } // namespace web
331 331
332 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 332 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/wk_web_view_configuration_provider.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698