Move most of ChromeV8Context to a base ScriptContext

This also moves ModuleSystem, RequestSender,
ObjectBackedNativeHandler, and SafeBuiltins
over to //extensions.

Other renderer code is updated minimally to support
these changes.

BUG=359836
[email protected] for chrome/test
[email protected] for apps/shell
[email protected] for PRESUBMIT.py

Review URL: https://codereview.chromium.org/234413005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263429 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index 0b2e6cc2..e9fb200 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -83,6 +83,10 @@
   // Appends extra filters to any Features created by the features system.
   virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0;
 
+  // Determines if certain fatal extensions errors should be surpressed
+  // (i.e., only logged) or allowed (i.e., logged before crashing).
+  virtual bool ShouldSuppressFatalErrors() const = 0;
+
   // Return the extensions client.
   static ExtensionsClient* Get();