Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
|
sdefresne
2015/10/21 23:56:21
This should have a bug and use the TODO(crbug.com/
shreyasv1
2015/10/22 00:33:59
Acknowledged.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |