OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_ERROR_MAP_H_ | 5 #ifndef EXTENSIONS_BROWSER_ERROR_MAP_H_ |
6 #define EXTENSIONS_BROWSER_ERROR_MAP_H_ | 6 #define EXTENSIONS_BROWSER_ERROR_MAP_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <deque> | 10 #include <deque> |
9 #include <map> | 11 #include <map> |
10 #include <set> | 12 #include <set> |
11 #include <string> | 13 #include <string> |
12 | 14 |
13 #include "base/basictypes.h" | 15 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "extensions/browser/extension_error.h" | 17 #include "extensions/browser/extension_error.h" |
16 | 18 |
17 namespace extensions { | 19 namespace extensions { |
18 | 20 |
19 typedef std::deque<const ExtensionError*> ErrorList; | 21 typedef std::deque<const ExtensionError*> ErrorList; |
20 | 22 |
21 // An ErrorMap is responsible for storing Extension-related errors, keyed by | 23 // An ErrorMap is responsible for storing Extension-related errors, keyed by |
22 // Extension ID. The errors are owned by the ErrorMap, and are deleted upon | 24 // Extension ID. The errors are owned by the ErrorMap, and are deleted upon |
23 // destruction. | 25 // destruction. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 80 |
79 // The mapping between Extension IDs and their corresponding Entries. | 81 // The mapping between Extension IDs and their corresponding Entries. |
80 EntryMap map_; | 82 EntryMap map_; |
81 | 83 |
82 DISALLOW_COPY_AND_ASSIGN(ErrorMap); | 84 DISALLOW_COPY_AND_ASSIGN(ErrorMap); |
83 }; | 85 }; |
84 | 86 |
85 } // namespace extensions | 87 } // namespace extensions |
86 | 88 |
87 #endif // EXTENSIONS_BROWSER_ERROR_MAP_H_ | 89 #endif // EXTENSIONS_BROWSER_ERROR_MAP_H_ |
OLD | NEW |