| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ios/web/public/java_script_dialog_type.h" | 23 #include "ios/web/public/java_script_dialog_type.h" |
| 24 #import "ios/web/public/web_state/web_state.h" | 24 #import "ios/web/public/web_state/web_state.h" |
| 25 #import "ios/web/public/web_state/web_state_delegate.h" | 25 #import "ios/web/public/web_state/web_state_delegate.h" |
| 26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
| 27 | 27 |
| 28 @class CRWSessionStorage; | 28 @class CRWSessionStorage; |
| 29 @class CRWWebController; | 29 @class CRWWebController; |
| 30 @protocol CRWWebViewProxy; | 30 @protocol CRWWebViewProxy; |
| 31 @class NSURLRequest; | 31 @class NSURLRequest; |
| 32 @class NSURLResponse; | 32 @class NSURLResponse; |
| 33 @protocol WebViewNavigationProxy; |
| 33 | 34 |
| 34 namespace net { | 35 namespace net { |
| 35 class HttpResponseHeaders; | 36 class HttpResponseHeaders; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace web { | 39 namespace web { |
| 39 | 40 |
| 40 class BrowserState; | 41 class BrowserState; |
| 41 struct ContextMenuParams; | 42 struct ContextMenuParams; |
| 42 struct FaviconURL; | 43 struct FaviconURL; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 void OnNavigationItemChanged() override; | 263 void OnNavigationItemChanged() override; |
| 263 void OnNavigationItemCommitted( | 264 void OnNavigationItemCommitted( |
| 264 const LoadCommittedDetails& load_details) override; | 265 const LoadCommittedDetails& load_details) override; |
| 265 | 266 |
| 266 // Updates the HTTP response headers for the main page using the headers | 267 // Updates the HTTP response headers for the main page using the headers |
| 267 // passed to the OnHttpResponseHeadersReceived() function below. | 268 // passed to the OnHttpResponseHeadersReceived() function below. |
| 268 // GetHttpResponseHeaders() can be used to get the headers. | 269 // GetHttpResponseHeaders() can be used to get the headers. |
| 269 void UpdateHttpResponseHeaders(const GURL& url); | 270 void UpdateHttpResponseHeaders(const GURL& url); |
| 270 | 271 |
| 271 WebState* GetWebState() override; | 272 WebState* GetWebState() override; |
| 273 id<WebViewNavigationProxy> GetWebViewNavigationProxy() const override; |
| 272 | 274 |
| 273 protected: | 275 protected: |
| 274 void AddObserver(WebStateObserver* observer) override; | 276 void AddObserver(WebStateObserver* observer) override; |
| 275 void RemoveObserver(WebStateObserver* observer) override; | 277 void RemoveObserver(WebStateObserver* observer) override; |
| 276 void AddPolicyDecider(WebStatePolicyDecider* decider) override; | 278 void AddPolicyDecider(WebStatePolicyDecider* decider) override; |
| 277 void RemovePolicyDecider(WebStatePolicyDecider* decider) override; | 279 void RemovePolicyDecider(WebStatePolicyDecider* decider) override; |
| 278 | 280 |
| 279 private: | 281 private: |
| 280 // The SessionStorageBuilder functions require access to private variables of | 282 // The SessionStorageBuilder functions require access to private variables of |
| 281 // WebStateImpl. | 283 // WebStateImpl. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 352 |
| 351 // Mojo interface registry for this WebState. | 353 // Mojo interface registry for this WebState. |
| 352 std::unique_ptr<WebStateInterfaceProvider> web_state_interface_provider_; | 354 std::unique_ptr<WebStateInterfaceProvider> web_state_interface_provider_; |
| 353 | 355 |
| 354 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 356 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 355 }; | 357 }; |
| 356 | 358 |
| 357 } // namespace web | 359 } // namespace web |
| 358 | 360 |
| 359 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 361 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |