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_LANGUAGE_ORDER_TABLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ |
6 #define CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ | 6 #define CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/table_model.h" | 12 #include "app/table_model.h" |
| 13 #include "base/basictypes.h" |
13 | 14 |
14 class TableModelObserver; | 15 class TableModelObserver; |
15 | 16 |
16 class LanguageOrderTableModel : public TableModel { | 17 class LanguageOrderTableModel : public TableModel { |
17 public: | 18 public: |
18 LanguageOrderTableModel(); | 19 LanguageOrderTableModel(); |
19 | 20 |
20 // Set Language List. | 21 // Set Language List. |
21 void SetAcceptLanguagesString(const std::string& language_list); | 22 void SetAcceptLanguagesString(const std::string& language_list); |
22 | 23 |
(...skipping 32 matching lines...) Loading... |
55 // Set of entries we're showing. | 56 // Set of entries we're showing. |
56 std::vector<std::string> languages_; | 57 std::vector<std::string> languages_; |
57 std::string comma_separated_language_list_; | 58 std::string comma_separated_language_list_; |
58 | 59 |
59 TableModelObserver* observer_; | 60 TableModelObserver* observer_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(LanguageOrderTableModel); | 62 DISALLOW_COPY_AND_ASSIGN(LanguageOrderTableModel); |
62 }; | 63 }; |
63 | 64 |
64 #endif // CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ | 65 #endif // CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ |
OLD | NEW |