Index: chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h |
diff --git a/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h b/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e89f9db4a54778848aaa8c4da95d39afdd9c4d55 |
--- /dev/null |
+++ b/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ |
+#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ |
+ |
+#include <vector> |
+#include "base/basictypes.h" |
+#include "base/strings/string16.h" |
+#include "ui/base/models/combobox_model.h" |
+ |
+class SavePasswordRefusalComboboxModel : public ui::ComboboxModel { |
+ public: |
+ enum { INDEX_NOPE = 0, INDEX_NEVER_FOR_THIS_SITE = 1 }; |
+ |
+ SavePasswordRefusalComboboxModel(); |
+ virtual ~SavePasswordRefusalComboboxModel(); |
+ |
+ private: |
+ // Overridden from ui::ComboboxModel: |
+ virtual int GetItemCount() const OVERRIDE; |
+ virtual base::string16 GetItemAt(int index) OVERRIDE; |
+ virtual bool IsItemSeparatorAt(int index) OVERRIDE; |
+ virtual int GetDefaultIndex() const OVERRIDE; |
+ |
+ std::vector<base::string16> items_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SavePasswordRefusalComboboxModel); |
+}; |
+ |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ |