Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / extensions / DEPS
index 038ba10..21a0ba6 100644 (file)
@@ -1,17 +1,55 @@
-# NOTE: Please only include major-module dependencies here.
-# Individual file include rules should live in extensions/browser/DEPS or
-# extensions/common/DEPS.
 include_rules = [
+  # Do not add Chrome dependencies. Much work went into removing them.
+  "+components/crx_file",
   "+components/url_matcher",
+  "-content",
+  "+content/grit/content_resources.h",
   "+content/public/common",
+  "+content/public/test",
   "+crypto",
+  "-extensions/components",
+  "+extensions/test",
+  "+grit/extensions_renderer_resources.h",
+  "+grit/extensions_resources.h",
+  "+mojo/public",
   "+testing",
-  "+ui"
+
+  # Minimal UI dependencies. There are two good rules for UI dependencies here:
+  #
+  #   1) UI components should only be added as they are needed, and
+  #   2) if //content doesn't allow it, //extensions probably won't allow it.
+  #      (see for example ui/views)
+  "-ui",
+  "+ui/base",
+  "+ui/gfx",
+  "+ui/events",
+
+  # NOTE: Please do not add includes without talking to the app shell team;
+  # see OWNERS for this directory.
 ]
 
-# Allow test support.
 specific_include_rules = {
-  ".*test\.(h|cc)$": [
+  ".*(test|test_util)\.(cc|h)$": [
     "+content/public/test",
+
+    # Temporarily allowed testing includes.  See above.
+    # TODO(jamescook): Remove these. http://crbug.com/162530
+    "+chrome/browser/apps/app_browsertest_util.h",
+    "+chrome/browser/extensions/api/management/management_api.h",
+    "+chrome/browser/extensions/api/permissions/permissions_api.h",
+    "+chrome/browser/extensions/extension_api_unittest.h",
+    "+chrome/browser/extensions/extension_apitest.h",
+    "+chrome/browser/extensions/extension_function_test_utils.h",
+    "+chrome/browser/extensions/extension_service.h",
+    "+chrome/browser/extensions/extension_service_test_base.h",
+    "+chrome/browser/extensions/extension_test_message_listener.h",
+    "+chrome/browser/extensions/test_extension_dir.h",
+    "+chrome/browser/extensions/test_extension_prefs.h",
+    "+chrome/browser/extensions/test_extension_system.h",
+    "+chrome/browser/ui/browser.h",
+    "+chrome/common/chrome_paths.h",
+    "+chrome/common/extensions/features/feature_channel.h",
+    "+chrome/test/base/testing_profile.h",
+    "+chrome/test/base/ui_test_utils.h",
   ],
 }