OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_CRX_INSTALLER_ERROR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
| 10 namespace extensions { |
| 11 |
10 // Simple error class for CrxInstaller. | 12 // Simple error class for CrxInstaller. |
11 class CrxInstallerError { | 13 class CrxInstallerError { |
12 public: | 14 public: |
13 // Typed errors that need to be handled specially by clients. | 15 // Typed errors that need to be handled specially by clients. |
14 enum Type { | 16 enum Type { |
15 ERROR_NONE, | 17 ERROR_NONE, |
16 ERROR_OFF_STORE, | 18 ERROR_OFF_STORE, |
17 ERROR_OTHER | 19 ERROR_OTHER |
18 }; | 20 }; |
19 | 21 |
(...skipping 10 matching lines...) Expand all Loading... |
30 } | 32 } |
31 | 33 |
32 Type type() const { return type_; } | 34 Type type() const { return type_; } |
33 const string16& message() const { return message_; } | 35 const string16& message() const { return message_; } |
34 | 36 |
35 private: | 37 private: |
36 Type type_; | 38 Type type_; |
37 string16 message_; | 39 string16 message_; |
38 }; | 40 }; |
39 | 41 |
| 42 } // namespace extensions |
| 43 |
40 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ |
OLD | NEW |