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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 NATIVE_APP_LAUNCHER_INFOBAR_DELEGATE = 53, | 123 NATIVE_APP_LAUNCHER_INFOBAR_DELEGATE = 53, |
124 NATIVE_APP_OPEN_POLICY_INFOBAR_DELEGATE = 54, | 124 NATIVE_APP_OPEN_POLICY_INFOBAR_DELEGATE = 54, |
125 RE_SIGN_IN_INFOBAR_DELEGATE = 55, | 125 RE_SIGN_IN_INFOBAR_DELEGATE = 55, |
126 SHOW_PASSKIT_INFOBAR_ERROR_DELEGATE = 56, | 126 SHOW_PASSKIT_INFOBAR_ERROR_DELEGATE = 56, |
127 READER_MODE_INFOBAR_DELEGATE = 57, | 127 READER_MODE_INFOBAR_DELEGATE = 57, |
128 SYNC_ERROR_INFOBAR_DELEGATE = 58, | 128 SYNC_ERROR_INFOBAR_DELEGATE = 58, |
129 UPGRADE_INFOBAR_DELEGATE = 59, | 129 UPGRADE_INFOBAR_DELEGATE = 59, |
130 CHROME_WINDOW_ERROR = 60, | 130 CHROME_WINDOW_ERROR = 60, |
131 CONFIRM_DANGEROUS_DOWNLOAD = 61, | 131 CONFIRM_DANGEROUS_DOWNLOAD = 61, |
132 DESKTOP_SEARCH_REDIRECTION_INFOBAR_DELEGATE = 62, | 132 DESKTOP_SEARCH_REDIRECTION_INFOBAR_DELEGATE = 62, |
| 133 UPDATE_PASSWORD_INFOBAR_DELEGATE = 63, |
133 }; | 134 }; |
134 | 135 |
135 // Describes navigation events, used to decide whether infobars should be | 136 // Describes navigation events, used to decide whether infobars should be |
136 // dismissed. | 137 // dismissed. |
137 struct NavigationDetails { | 138 struct NavigationDetails { |
138 // Unique identifier for the entry. | 139 // Unique identifier for the entry. |
139 int entry_id; | 140 int entry_id; |
140 // True if it is a navigation to a different page (as opposed to in-page). | 141 // True if it is a navigation to a different page (as opposed to in-page). |
141 bool is_navigation_to_different_page; | 142 bool is_navigation_to_different_page; |
142 // True if the entry replaced the existing one. | 143 // True if the entry replaced the existing one. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 232 |
232 // The ID of the active navigation entry at the time we became owned. | 233 // The ID of the active navigation entry at the time we became owned. |
233 int nav_entry_id_; | 234 int nav_entry_id_; |
234 | 235 |
235 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 236 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
236 }; | 237 }; |
237 | 238 |
238 } // namespace infobars | 239 } // namespace infobars |
239 | 240 |
240 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 241 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
OLD | NEW |