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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // writing them out for session saves. | 62 // writing them out for session saves. |
63 class WebStateImpl : public WebState, public NavigationManagerDelegate { | 63 class WebStateImpl : public WebState, public NavigationManagerDelegate { |
64 public: | 64 public: |
65 // Constructor for WebStateImpls created for new sessions. | 65 // Constructor for WebStateImpls created for new sessions. |
66 WebStateImpl(BrowserState* browser_state); | 66 WebStateImpl(BrowserState* browser_state); |
67 // Constructor for WebStatesImpls created for deserialized sessions | 67 // Constructor for WebStatesImpls created for deserialized sessions |
68 WebStateImpl(BrowserState* browser_state, CRWSessionStorage* session_storage); | 68 WebStateImpl(BrowserState* browser_state, CRWSessionStorage* session_storage); |
69 ~WebStateImpl() override; | 69 ~WebStateImpl() override; |
70 | 70 |
71 // Gets/Sets the CRWWebController that backs this object. | 71 // Gets/Sets the CRWWebController that backs this object. |
72 CRWWebController* GetWebController(); | 72 CRWWebController* GetWebController() override; |
73 void SetWebController(CRWWebController* web_controller); | 73 void SetWebController(CRWWebController* web_controller); |
74 | 74 |
75 // Gets or sets the delegate used to communicate with the web contents facade. | 75 // Gets or sets the delegate used to communicate with the web contents facade. |
76 WebStateFacadeDelegate* GetFacadeDelegate() const; | 76 WebStateFacadeDelegate* GetFacadeDelegate() const; |
77 void SetFacadeDelegate(WebStateFacadeDelegate* facade_delegate); | 77 void SetFacadeDelegate(WebStateFacadeDelegate* facade_delegate); |
78 | 78 |
79 // Notifies the observers that a provisional navigation has started. | 79 // Notifies the observers that a provisional navigation has started. |
80 void OnProvisionalNavigationStarted(const GURL& url); | 80 void OnProvisionalNavigationStarted(const GURL& url); |
81 | 81 |
82 // Called when a navigation is committed. | 82 // Called when a navigation is committed. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 // Mojo interface registry for this WebState. | 365 // Mojo interface registry for this WebState. |
366 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 366 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
367 | 367 |
368 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 368 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
369 }; | 369 }; |
370 | 370 |
371 } // namespace web | 371 } // namespace web |
372 | 372 |
373 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 373 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
OLD | NEW |