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

Side by Side Diff: extensions/common/extensions_client.h

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system 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 | « extensions/DEPS ('k') | extensions/extensions.gyp » ('j') | 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_COMMON_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Returns true iff a schema named |name| is generated. 77 // Returns true iff a schema named |name| is generated.
78 virtual bool IsAPISchemaGenerated(const std::string& name) const = 0; 78 virtual bool IsAPISchemaGenerated(const std::string& name) const = 0;
79 79
80 // Gets the API schema named |name|. 80 // Gets the API schema named |name|.
81 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0; 81 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0;
82 82
83 // Appends extra filters to any Features created by the features system. 83 // Appends extra filters to any Features created by the features system.
84 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0; 84 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0;
85 85
86 // Determines if certain fatal extensions errors should be surpressed
87 // (i.e., only logged) or allowed (i.e., logged before crashing).
88 virtual bool ShouldSuppressFatalErrors() const = 0;
89
86 // Return the extensions client. 90 // Return the extensions client.
87 static ExtensionsClient* Get(); 91 static ExtensionsClient* Get();
88 92
89 // Initialize the extensions system with this extensions client. 93 // Initialize the extensions system with this extensions client.
90 static void Set(ExtensionsClient* client); 94 static void Set(ExtensionsClient* client);
91 }; 95 };
92 96
93 } // namespace extensions 97 } // namespace extensions
94 98
95 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 99 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698