OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
10 #include "base/string16.h" | 12 #include "base/string16.h" |
11 #include "chrome/browser/tab_contents/link_infobar_delegate.h" | 13 #include "chrome/browser/tab_contents/link_infobar_delegate.h" |
12 #include "webkit/glue/window_open_disposition.h" | 14 #include "webkit/glue/window_open_disposition.h" |
13 | 15 |
14 class TabContents; | |
15 | |
16 // An InfoBar delegate that prompts the user to provide additional feedback for | 16 // An InfoBar delegate that prompts the user to provide additional feedback for |
17 // the Autofill developers. | 17 // the Autofill developers. |
18 class AutofillFeedbackInfoBarDelegate : public LinkInfoBarDelegate { | 18 class AutofillFeedbackInfoBarDelegate : public LinkInfoBarDelegate { |
19 public: | 19 public: |
20 AutofillFeedbackInfoBarDelegate(InfoBarTabHelper* infobar_helper, | 20 AutofillFeedbackInfoBarDelegate(InfoBarTabHelper* infobar_helper, |
21 const string16& message, | 21 const string16& message, |
22 const string16& link_text, | 22 const string16& link_text, |
23 const std::string& feedback_message); | 23 const std::string& feedback_message); |
24 | 24 |
25 private: | 25 private: |
(...skipping 11 matching lines...) Expand all Loading... |
37 // The default feedback message, which can be edited by the user prior to | 37 // The default feedback message, which can be edited by the user prior to |
38 // submission. | 38 // submission. |
39 const std::string feedback_message_; | 39 const std::string feedback_message_; |
40 | 40 |
41 bool link_clicked_; | 41 bool link_clicked_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(AutofillFeedbackInfoBarDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(AutofillFeedbackInfoBarDelegate); |
44 }; | 44 }; |
45 | 45 |
46 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ | 46 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ |
OLD | NEW |