| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // The CRWWebController that backs and owns this object. | 276 // The CRWWebController that backs and owns this object. |
| 277 CRWWebController* web_controller_; | 277 CRWWebController* web_controller_; |
| 278 | 278 |
| 279 NavigationManagerImpl navigation_manager_; | 279 NavigationManagerImpl navigation_manager_; |
| 280 | 280 |
| 281 // |web::WebUIIOS| object for the current page if it is a WebUI page that | 281 // |web::WebUIIOS| object for the current page if it is a WebUI page that |
| 282 // uses the web-based WebUI framework, or nullptr otherwise. | 282 // uses the web-based WebUI framework, or nullptr otherwise. |
| 283 scoped_ptr<web::WebUIIOS> web_ui_; | 283 scoped_ptr<web::WebUIIOS> web_ui_; |
| 284 | 284 |
| 285 // A list of observers notified when page state changes. Weak references. | 285 // A list of observers notified when page state changes. Weak references. |
| 286 ObserverList<WebStateObserver, true> observers_; | 286 base::ObserverList<WebStateObserver, true> observers_; |
| 287 | 287 |
| 288 // Map of all the HTTP response headers received, for each URL. | 288 // Map of all the HTTP response headers received, for each URL. |
| 289 // This map is cleared after each page load, and only the headers of the main | 289 // This map is cleared after each page load, and only the headers of the main |
| 290 // page are used. | 290 // page are used. |
| 291 std::map<GURL, scoped_refptr<net::HttpResponseHeaders> > | 291 std::map<GURL, scoped_refptr<net::HttpResponseHeaders> > |
| 292 response_headers_map_; | 292 response_headers_map_; |
| 293 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; | 293 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; |
| 294 std::string mime_type_; | 294 std::string mime_type_; |
| 295 std::string content_language_header_; | 295 std::string content_language_header_; |
| 296 | 296 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 313 | 313 |
| 314 // Callbacks associated to command prefixes. | 314 // Callbacks associated to command prefixes. |
| 315 std::map<std::string, ScriptCommandCallback> script_command_callbacks_; | 315 std::map<std::string, ScriptCommandCallback> script_command_callbacks_; |
| 316 | 316 |
| 317 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 317 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace web | 320 } // namespace web |
| 321 | 321 |
| 322 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 322 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |