| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // there is any error when parsing the form field information. | 75 // there is any error when parsing the form field information. |
| 76 virtual void FormActivityRegistered(const std::string& form_name, | 76 virtual void FormActivityRegistered(const std::string& form_name, |
| 77 const std::string& field_name, | 77 const std::string& field_name, |
| 78 const std::string& type, | 78 const std::string& type, |
| 79 const std::string& value, | 79 const std::string& value, |
| 80 bool input_missing) {} | 80 bool input_missing) {} |
| 81 | 81 |
| 82 // Invoked when new favicon URL candidates are received. | 82 // Invoked when new favicon URL candidates are received. |
| 83 virtual void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) {} | 83 virtual void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) {} |
| 84 | 84 |
| 85 // Called when the web process is terminated (usually by crashing, though |
| 86 // possibly by other means). |
| 87 virtual void RenderProcessGone() {} |
| 88 |
| 85 // Notifies the observer that the credential manager API was invoked from | 89 // Notifies the observer that the credential manager API was invoked from |
| 86 // |source_url| to request a credential from the browser. If |unmediated| | 90 // |source_url| to request a credential from the browser. If |unmediated| |
| 87 // is true, the browser MUST NOT show any UI to the user. If this means that | 91 // is true, the browser MUST NOT show any UI to the user. If this means that |
| 88 // no credential will be returned to the page, so be it. Otherwise, the | 92 // no credential will be returned to the page, so be it. Otherwise, the |
| 89 // browser may show the user any UI that is necessary to get a Credential and | 93 // browser may show the user any UI that is necessary to get a Credential and |
| 90 // return it to the page. |federations| specifies a list of acceptable | 94 // return it to the page. |federations| specifies a list of acceptable |
| 91 // federation providers. |user_interaction| indicates whether the API was | 95 // federation providers. |user_interaction| indicates whether the API was |
| 92 // invoked in response to a user interaction. Responses to the page should | 96 // invoked in response to a user interaction. Responses to the page should |
| 93 // provide the specified |request_id|. | 97 // provide the specified |request_id|. |
| 94 virtual void CredentialsRequested(int request_id, | 98 virtual void CredentialsRequested(int request_id, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void ResetWebState(); | 161 void ResetWebState(); |
| 158 | 162 |
| 159 WebState* web_state_; | 163 WebState* web_state_; |
| 160 | 164 |
| 161 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); | 165 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 } // namespace web | 168 } // namespace web |
| 165 | 169 |
| 166 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ | 170 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ |
| OLD | NEW |