OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/compiler_specific.h" |
11 #include "chrome/browser/views/options/options_page_view.h" | 12 #include "chrome/browser/views/options/options_page_view.h" |
12 #include "chrome/browser/views/options/passwords_page_view.h" | 13 #include "chrome/browser/views/options/passwords_page_view.h" |
13 #include "views/controls/table/table_view_observer.h" | 14 #include "views/controls/table/table_view_observer.h" |
14 | 15 |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
18 // ExceptionsTableModel | 19 // ExceptionsTableModel |
19 class ExceptionsTableModel : public PasswordsTableModel { | 20 class ExceptionsTableModel : public PasswordsTableModel { |
20 public: | 21 public: |
21 explicit ExceptionsTableModel(Profile* profile); | 22 explicit ExceptionsTableModel(Profile* profile); |
22 virtual ~ExceptionsTableModel(); | 23 virtual ~ExceptionsTableModel(); |
23 | 24 |
24 // TableModel methods. | 25 // TableModel methods. |
25 virtual std::wstring GetText(int row, int column); | 26 virtual string16 GetText(int row, int column) OVERRIDE; |
26 virtual int CompareValues(int row1, int row2, int col_id); | 27 virtual int CompareValues(int row1, int row2, int col_id) OVERRIDE; |
27 | 28 |
28 // PasswordStoreConsumer implementation. | 29 // PasswordStoreConsumer implementation. |
29 virtual void OnPasswordStoreRequestDone( | 30 virtual void OnPasswordStoreRequestDone( |
30 int handle, const std::vector<webkit_glue::PasswordForm*>& result); | 31 int handle, const std::vector<webkit_glue::PasswordForm*>& result); |
31 // Request all logins data. | 32 // Request all logins data. |
32 void GetAllExceptionsForProfile(); | 33 void GetAllExceptionsForProfile(); |
33 }; | 34 }; |
34 | 35 |
35 /////////////////////////////////////////////////////////////////////////////// | 36 /////////////////////////////////////////////////////////////////////////////// |
36 // ExceptionsPageView | 37 // ExceptionsPageView |
(...skipping 29 matching lines...) Expand all Loading... |
66 | 67 |
67 // The buttons and labels. | 68 // The buttons and labels. |
68 views::NativeButton remove_button_; | 69 views::NativeButton remove_button_; |
69 views::NativeButton remove_all_button_; | 70 views::NativeButton remove_all_button_; |
70 MultiLabelButtons show_button_; | 71 MultiLabelButtons show_button_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(ExceptionsPageView); | 73 DISALLOW_COPY_AND_ASSIGN(ExceptionsPageView); |
73 }; | 74 }; |
74 | 75 |
75 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ | 76 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_PAGE_VIEW_H_ |
OLD | NEW |