| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 WebStateObserverBridge(web::WebState* web_state, | 92 WebStateObserverBridge(web::WebState* web_state, |
| 93 id<CRWWebStateObserver> observer); | 93 id<CRWWebStateObserver> observer); |
| 94 ~WebStateObserverBridge() override; | 94 ~WebStateObserverBridge() override; |
| 95 | 95 |
| 96 // web::WebStateObserver methods. | 96 // web::WebStateObserver methods. |
| 97 void ProvisionalNavigationStarted(const GURL& url) override; | 97 void ProvisionalNavigationStarted(const GURL& url) override; |
| 98 void NavigationItemCommitted( | 98 void NavigationItemCommitted( |
| 99 const LoadCommittedDetails& load_details) override; | 99 const LoadCommittedDetails& load_details) override; |
| 100 void PageLoaded( | 100 void PageLoaded( |
| 101 web::PageLoadCompletionStatus load_completion_status) override; | 101 web::PageLoadCompletionStatus load_completion_status) override; |
| 102 void InsterstitialDismissed() override; | 102 void InterstitialDismissed() override; |
| 103 void UrlHashChanged() override; | 103 void UrlHashChanged() override; |
| 104 void HistoryStateChanged() override; | 104 void HistoryStateChanged() override; |
| 105 void LoadProgressChanged(double progress) override; | 105 void LoadProgressChanged(double progress) override; |
| 106 void DocumentSubmitted(const std::string& form_name, | 106 void DocumentSubmitted(const std::string& form_name, |
| 107 bool user_initiated) override; | 107 bool user_initiated) override; |
| 108 void FormActivityRegistered(const std::string& form_name, | 108 void FormActivityRegistered(const std::string& form_name, |
| 109 const std::string& field_name, | 109 const std::string& field_name, |
| 110 const std::string& type, | 110 const std::string& type, |
| 111 const std::string& value, | 111 const std::string& value, |
| 112 bool input_missing) override; | 112 bool input_missing) override; |
| 113 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; | 113 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; |
| 114 void RenderProcessGone() override; | 114 void RenderProcessGone() override; |
| 115 void WebStateDestroyed() override; | 115 void WebStateDestroyed() override; |
| 116 void DidStartLoading() override; | 116 void DidStartLoading() override; |
| 117 void DidStopLoading() override; | 117 void DidStopLoading() override; |
| 118 | 118 |
| 119 private: | 119 private: |
| 120 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; | 120 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; |
| 121 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); | 121 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace web | 124 } // namespace web |
| 125 | 125 |
| 126 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ | 126 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ |
| OLD | NEW |