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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 READER_MODE_INFOBAR_DELEGATE_IOS = 57, | 127 READER_MODE_INFOBAR_DELEGATE_IOS = 57, |
128 SYNC_ERROR_INFOBAR_DELEGATE = 58, | 128 SYNC_ERROR_INFOBAR_DELEGATE = 58, |
129 UPGRADE_INFOBAR_DELEGATE_IOS = 59, | 129 UPGRADE_INFOBAR_DELEGATE_IOS = 59, |
130 CHROME_WINDOW_ERROR = 60, | 130 CHROME_WINDOW_ERROR = 60, |
131 CONFIRM_DANGEROUS_DOWNLOAD = 61, | 131 CONFIRM_DANGEROUS_DOWNLOAD = 61, |
132 // Removed: DESKTOP_SEARCH_REDIRECTION_INFOBAR_DELEGATE = 62, | 132 // Removed: DESKTOP_SEARCH_REDIRECTION_INFOBAR_DELEGATE = 62, |
133 UPDATE_PASSWORD_INFOBAR_DELEGATE = 63, | 133 UPDATE_PASSWORD_INFOBAR_DELEGATE = 63, |
134 DATA_REDUCTION_PROMO_INFOBAR_DELEGATE_ANDROID = 64, | 134 DATA_REDUCTION_PROMO_INFOBAR_DELEGATE_ANDROID = 64, |
135 AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_DELEGATE_ANDROID = 65, | 135 AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_DELEGATE_ANDROID = 65, |
136 SUBRESOURCE_FILTER_INFOBAR_DELEGATE_ANDROID = 66, | 136 SUBRESOURCE_FILTER_INFOBAR_DELEGATE_ANDROID = 66, |
137 DATA_REDUCTION_PROXY_PREVIEW_INFOBAR_DELEGATE = 67, | |
gone
2016/08/30 22:54:06
Corresponding histograms.xml change?
megjablon
2016/08/30 23:48:33
Done.
| |
137 }; | 138 }; |
138 | 139 |
139 // Describes navigation events, used to decide whether infobars should be | 140 // Describes navigation events, used to decide whether infobars should be |
140 // dismissed. | 141 // dismissed. |
141 struct NavigationDetails { | 142 struct NavigationDetails { |
142 // Unique identifier for the entry. | 143 // Unique identifier for the entry. |
143 int entry_id; | 144 int entry_id; |
144 // True if it is a navigation to a different page (as opposed to in-page). | 145 // True if it is a navigation to a different page (as opposed to in-page). |
145 bool is_navigation_to_different_page; | 146 bool is_navigation_to_different_page; |
146 // True if the entry replaced the existing one. | 147 // True if the entry replaced the existing one. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 | 235 |
235 // The ID of the active navigation entry at the time we became owned. | 236 // The ID of the active navigation entry at the time we became owned. |
236 int nav_entry_id_; | 237 int nav_entry_id_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 239 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
239 }; | 240 }; |
240 | 241 |
241 } // namespace infobars | 242 } // namespace infobars |
242 | 243 |
243 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 244 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
OLD | NEW |