Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: extensions/browser/extension_error.h

Issue 238073002: Provide UI for per-extension enabling/disabling of error collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "extensions/common/stack_frame.h" 15 #include "extensions/common/stack_frame.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 } 20 }
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 class ExtensionError { 24 class ExtensionError {
25 public: 25 public:
26 enum Type { 26 enum Type {
27 MANIFEST_ERROR, 27 MANIFEST_ERROR,
28 RUNTIME_ERROR 28 RUNTIME_ERROR,
29 NUM_ERROR_TYPES // Put new values above this.
29 }; 30 };
30 31
31 virtual ~ExtensionError(); 32 virtual ~ExtensionError();
32 33
33 // Serializes the ExtensionError into JSON format. 34 // Serializes the ExtensionError into JSON format.
34 virtual scoped_ptr<base::DictionaryValue> ToValue() const; 35 virtual scoped_ptr<base::DictionaryValue> ToValue() const;
35 36
36 virtual std::string PrintForTest() const; 37 virtual std::string PrintForTest() const;
37 38
38 // Return true if this error and |rhs| are considered equal, and should be 39 // Return true if this error and |rhs| are considered equal, and should be
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // inspect the view later, if possible. 166 // inspect the view later, if possible.
166 int render_view_id_; 167 int render_view_id_;
167 int render_process_id_; 168 int render_process_id_;
168 169
169 DISALLOW_COPY_AND_ASSIGN(RuntimeError); 170 DISALLOW_COPY_AND_ASSIGN(RuntimeError);
170 }; 171 };
171 172
172 } // namespace extensions 173 } // namespace extensions
173 174
174 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_H_ 175 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698