Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed more comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // 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_CC_ASSIST_INFOBAR_DELEGATE = 65,
Peter Kasting 2016/07/29 21:26:34 Is this used only on Android? If so, suffix with
Mathieu 2016/08/01 22:16:57 Done.
135 }; 136 };
136 137
137 // Describes navigation events, used to decide whether infobars should be 138 // Describes navigation events, used to decide whether infobars should be
138 // dismissed. 139 // dismissed.
139 struct NavigationDetails { 140 struct NavigationDetails {
140 // Unique identifier for the entry. 141 // Unique identifier for the entry.
141 int entry_id; 142 int entry_id;
142 // True if it is a navigation to a different page (as opposed to in-page). 143 // True if it is a navigation to a different page (as opposed to in-page).
143 bool is_navigation_to_different_page; 144 bool is_navigation_to_different_page;
144 // True if the entry replaced the existing one. 145 // True if the entry replaced the existing one.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 233
233 // The ID of the active navigation entry at the time we became owned. 234 // The ID of the active navigation entry at the time we became owned.
234 int nav_entry_id_; 235 int nav_entry_id_;
235 236
236 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 237 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
237 }; 238 };
238 239
239 } // namespace infobars 240 } // namespace infobars
240 241
241 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 242 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698