OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_CHARACTER_ENCODING_H_ | 5 #ifndef CHROME_BROWSER_CHARACTER_ENCODING_H_ |
6 #define CHROME_BROWSER_CHARACTER_ENCODING_H_ | 6 #define CHROME_BROWSER_CHARACTER_ENCODING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 | 13 |
14 class CharacterEncoding { | 14 class CharacterEncoding { |
15 public: | 15 public: |
16 // Enumeration of the types of Browser encoding name we | 16 // Enumeration of the types of Browser encoding name we |
17 // currently support. This is defined outside of Browser | 17 // currently support. This is defined outside of Browser |
18 // to avoid cyclical dependencies. | 18 // to avoid cyclical dependencies. |
19 | 19 |
20 // Structure to save encoding information. | 20 // Structure to save encoding information. |
21 struct EncodingInfo { | 21 struct EncodingInfo { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // valid, return corresponding encoding command id. Otherwise return 0; | 97 // valid, return corresponding encoding command id. Otherwise return 0; |
98 static int GetCommandIdByCanonicalEncodingName( | 98 static int GetCommandIdByCanonicalEncodingName( |
99 const std::string& encoding_name); | 99 const std::string& encoding_name); |
100 | 100 |
101 private: | 101 private: |
102 // Disallow instantiating it since this class only contains static methods. | 102 // Disallow instantiating it since this class only contains static methods. |
103 DISALLOW_IMPLICIT_CONSTRUCTORS(CharacterEncoding); | 103 DISALLOW_IMPLICIT_CONSTRUCTORS(CharacterEncoding); |
104 }; | 104 }; |
105 | 105 |
106 #endif // CHROME_BROWSER_CHARACTER_ENCODING_H_ | 106 #endif // CHROME_BROWSER_CHARACTER_ENCODING_H_ |
OLD | NEW |