| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSION_ERROR_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 logging::LogSeverity level_; | 77 logging::LogSeverity level_; |
| 78 // The source for the error; this can be a script, web page, or manifest file. | 78 // The source for the error; this can be a script, web page, or manifest file. |
| 79 // This is stored as a string (rather than a url) since it can be a Chrome | 79 // This is stored as a string (rather than a url) since it can be a Chrome |
| 80 // script file (e.g., event_bindings.js). | 80 // script file (e.g., event_bindings.js). |
| 81 base::string16 source_; | 81 base::string16 source_; |
| 82 // The error message itself. | 82 // The error message itself. |
| 83 base::string16 message_; | 83 base::string16 message_; |
| 84 // The number of times this error has occurred. | 84 // The number of times this error has occurred. |
| 85 size_t occurrences_; | 85 size_t occurrences_; |
| 86 | 86 |
| 87 private: |
| 87 DISALLOW_COPY_AND_ASSIGN(ExtensionError); | 88 DISALLOW_COPY_AND_ASSIGN(ExtensionError); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 class ManifestError : public ExtensionError { | 91 class ManifestError : public ExtensionError { |
| 91 public: | 92 public: |
| 92 ManifestError(const std::string& extension_id, | 93 ManifestError(const std::string& extension_id, |
| 93 const base::string16& message, | 94 const base::string16& message, |
| 94 const base::string16& manifest_key, | 95 const base::string16& manifest_key, |
| 95 const base::string16& manifest_specific); | 96 const base::string16& manifest_specific); |
| 96 virtual ~ManifestError(); | 97 virtual ~ManifestError(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // inspect the view later, if possible. | 167 // inspect the view later, if possible. |
| 167 int render_view_id_; | 168 int render_view_id_; |
| 168 int render_process_id_; | 169 int render_process_id_; |
| 169 | 170 |
| 170 DISALLOW_COPY_AND_ASSIGN(RuntimeError); | 171 DISALLOW_COPY_AND_ASSIGN(RuntimeError); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 } // namespace extensions | 174 } // namespace extensions |
| 174 | 175 |
| 175 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ | 176 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ |
| OLD | NEW |