| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 base::WeakPtr<WebState> AsWeakPtr() override; | 246 base::WeakPtr<WebState> AsWeakPtr() override; |
| 247 | 247 |
| 248 // Adds |interstitial|'s view to the web controller's content view. | 248 // Adds |interstitial|'s view to the web controller's content view. |
| 249 void ShowWebInterstitial(WebInterstitialImpl* interstitial); | 249 void ShowWebInterstitial(WebInterstitialImpl* interstitial); |
| 250 | 250 |
| 251 // Called to dismiss the currently-displayed transient content view. | 251 // Called to dismiss the currently-displayed transient content view. |
| 252 void ClearTransientContentView(); | 252 void ClearTransientContentView(); |
| 253 | 253 |
| 254 // NavigationManagerDelegate: | 254 // NavigationManagerDelegate: |
| 255 void NavigateToPendingEntry() override; | 255 void NavigateToPendingEntry() override; |
| 256 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; |
| 256 void OnNavigationItemsPruned(size_t pruned_item_count) override; | 257 void OnNavigationItemsPruned(size_t pruned_item_count) override; |
| 257 void OnNavigationItemChanged() override; | 258 void OnNavigationItemChanged() override; |
| 258 void OnNavigationItemCommitted( | 259 void OnNavigationItemCommitted( |
| 259 const LoadCommittedDetails& load_details) override; | 260 const LoadCommittedDetails& load_details) override; |
| 260 WebState* GetWebState() override; | 261 WebState* GetWebState() override; |
| 261 | 262 |
| 262 protected: | 263 protected: |
| 263 void AddObserver(WebStateObserver* observer) override; | 264 void AddObserver(WebStateObserver* observer) override; |
| 264 void RemoveObserver(WebStateObserver* observer) override; | 265 void RemoveObserver(WebStateObserver* observer) override; |
| 265 void AddPolicyDecider(WebStatePolicyDecider* decider) override; | 266 void AddPolicyDecider(WebStatePolicyDecider* decider) override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // any WeakPtrs to WebStateImpl are invalidated before its member variable's | 337 // any WeakPtrs to WebStateImpl are invalidated before its member variable's |
| 337 // destructors are executed, rendering them invalid. | 338 // destructors are executed, rendering them invalid. |
| 338 base::WeakPtrFactory<WebState> weak_factory_; | 339 base::WeakPtrFactory<WebState> weak_factory_; |
| 339 | 340 |
| 340 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 341 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 341 }; | 342 }; |
| 342 | 343 |
| 343 } // namespace web | 344 } // namespace web |
| 344 | 345 |
| 345 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 346 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |