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_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 #include <vector> | 9 #include <vector> |
11 | 10 |
12 #include "base/string16.h" | 11 #include "base/string16.h" |
13 | 12 |
14 class MessageLoop; | 13 class MessageLoop; |
15 | 14 |
16 // Exposes an easy way for the various components of the extension system to | 15 // Exposes an easy way for the various components of the extension system to |
17 // report errors. This is a singleton that lives on the UI thread, with the | 16 // report errors. This is a singleton that lives on the UI thread, with the |
(...skipping 27 matching lines...) Expand all Loading... |
45 | 44 |
46 explicit ExtensionErrorReporter(bool enable_noisy_errors); | 45 explicit ExtensionErrorReporter(bool enable_noisy_errors); |
47 ~ExtensionErrorReporter(); | 46 ~ExtensionErrorReporter(); |
48 | 47 |
49 MessageLoop* ui_loop_; | 48 MessageLoop* ui_loop_; |
50 std::vector<string16> errors_; | 49 std::vector<string16> errors_; |
51 bool enable_noisy_errors_; | 50 bool enable_noisy_errors_; |
52 }; | 51 }; |
53 | 52 |
54 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_ |
OLD | NEW |