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 "app/table_model_observer.h" | 13 |
| 14 class TableModelObserver; |
14 | 15 |
15 class LanguageOrderTableModel : public TableModel { | 16 class LanguageOrderTableModel : public TableModel { |
16 public: | 17 public: |
17 LanguageOrderTableModel(); | 18 LanguageOrderTableModel(); |
18 | 19 |
19 // Set Language List. | 20 // Set Language List. |
20 void SetAcceptLanguagesString(const std::string& language_list); | 21 void SetAcceptLanguagesString(const std::string& language_list); |
21 | 22 |
22 // Add at the end. Return true if the language was added. | 23 // Add at the end. Return true if the language was added. |
23 bool Add(const std::string& language); | 24 bool Add(const std::string& language); |
(...skipping 30 matching lines...) Expand all Loading... |
54 // Set of entries we're showing. | 55 // Set of entries we're showing. |
55 std::vector<std::string> languages_; | 56 std::vector<std::string> languages_; |
56 std::string comma_separated_language_list_; | 57 std::string comma_separated_language_list_; |
57 | 58 |
58 TableModelObserver* observer_; | 59 TableModelObserver* observer_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(LanguageOrderTableModel); | 61 DISALLOW_COPY_AND_ASSIGN(LanguageOrderTableModel); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ | 64 #endif // CHROME_BROWSER_LANGUAGE_ORDER_TABLE_MODEL_H_ |
OLD | NEW |