OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_CROS_NETWORK_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_PARSER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_PARSER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "chrome/browser/chromeos/cros/network_library.h" | 13 #include "chrome/browser/chromeos/cros/network_library.h" |
14 | 14 |
| 15 namespace base { |
| 16 class DictionaryValue; |
15 class Value; | 17 class Value; |
| 18 } |
16 | 19 |
17 namespace chromeos { | 20 namespace chromeos { |
18 | 21 |
19 class NetworkDevice; | 22 class NetworkDevice; |
20 | 23 |
21 // This turns an array of string-to-enum-value mappings into a class | 24 // This turns an array of string-to-enum-value mappings into a class |
22 // that can cache the mapping and do quick lookups using an actual map | 25 // that can cache the mapping and do quick lookups using an actual map |
23 // class. Usage is something like: | 26 // class. Usage is something like: |
24 // | 27 // |
25 // const char kKey1[] = "key1"; | 28 // const char kKey1[] = "key1"; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 148 } |
146 | 149 |
147 private: | 150 private: |
148 const EnumMapper<PropertyIndex>* mapper_; | 151 const EnumMapper<PropertyIndex>* mapper_; |
149 DISALLOW_COPY_AND_ASSIGN(NetworkParser); | 152 DISALLOW_COPY_AND_ASSIGN(NetworkParser); |
150 }; | 153 }; |
151 | 154 |
152 } // namespace chromeos | 155 } // namespace chromeos |
153 | 156 |
154 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_PARSER_H_ | 157 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_PARSER_H_ |
OLD | NEW |