Chromium Code Reviews| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 UPDATE_PASSWORD_INFOBAR_DELEGATE = 63, | 137 UPDATE_PASSWORD_INFOBAR_DELEGATE = 63, |
| 138 DATA_REDUCTION_PROMO_INFOBAR_DELEGATE_ANDROID = 64, | 138 DATA_REDUCTION_PROMO_INFOBAR_DELEGATE_ANDROID = 64, |
| 139 AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_DELEGATE_ANDROID = 65, | 139 AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_DELEGATE_ANDROID = 65, |
| 140 SUBRESOURCE_FILTER_INFOBAR_DELEGATE_ANDROID = 66, | 140 SUBRESOURCE_FILTER_INFOBAR_DELEGATE_ANDROID = 66, |
| 141 INSTANT_APPS_INFOBAR_DELEGATE_ANDROID = 67, | 141 INSTANT_APPS_INFOBAR_DELEGATE_ANDROID = 67, |
| 142 DATA_REDUCTION_PROXY_PREVIEW_INFOBAR_DELEGATE = 68, | 142 DATA_REDUCTION_PROXY_PREVIEW_INFOBAR_DELEGATE = 68, |
| 143 SCREEN_CAPTURE_INFOBAR_DELEGATE_ANDROID = 69, | 143 SCREEN_CAPTURE_INFOBAR_DELEGATE_ANDROID = 69, |
| 144 GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID = 70, | 144 GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID = 70, |
| 145 OFFLINE_PAGE_INFOBAR_DELEGATE = 71, | 145 OFFLINE_PAGE_INFOBAR_DELEGATE = 71, |
| 146 SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE = 72, | 146 SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE = 72, |
| 147 CHROMEDRIVER_INFOBAR_DELEGATE = 73, | |
|
Peter Kasting
2017/02/13 23:16:52
You also need to add a corresponding histogram val
samuong
2017/02/14 00:19:17
I'm not very familiar with histograms. I've added
Peter Kasting
2017/02/14 00:23:17
I think that's all you need, but you'll need signo
| |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 // Describes navigation events, used to decide whether infobars should be | 150 // Describes navigation events, used to decide whether infobars should be |
| 150 // dismissed. | 151 // dismissed. |
| 151 struct NavigationDetails { | 152 struct NavigationDetails { |
| 152 // Unique identifier for the entry. | 153 // Unique identifier for the entry. |
| 153 int entry_id; | 154 int entry_id; |
| 154 // True if it is a navigation to a different page (as opposed to in-page). | 155 // True if it is a navigation to a different page (as opposed to in-page). |
| 155 bool is_navigation_to_different_page; | 156 bool is_navigation_to_different_page; |
| 156 // True if the entry replaced the existing one. | 157 // True if the entry replaced the existing one. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 | 247 |
| 247 // The ID of the active navigation entry at the time we became owned. | 248 // The ID of the active navigation entry at the time we became owned. |
| 248 int nav_entry_id_; | 249 int nav_entry_id_; |
| 249 | 250 |
| 250 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 251 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 } // namespace infobars | 254 } // namespace infobars |
| 254 | 255 |
| 255 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 256 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |