Index: third_party/WebKit/Source/devtools/front_end/product_registry/ProductRegistry.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/product_registry/ProductRegistry.js b/third_party/WebKit/Source/devtools/front_end/product_registry/ProductRegistry.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66f431c8833ef2ec21d474b637ec4a8314da162d |
--- /dev/null |
+++ b/third_party/WebKit/Source/devtools/front_end/product_registry/ProductRegistry.js |
@@ -0,0 +1,43 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+/** |
+ * @return {!Promise<!ProductRegistry.Registry>} |
+ */ |
+ProductRegistry.instance = function() { |
+ return self.runtime.extension(ProductRegistry.Registry).instance(); |
+}; |
+ |
+/** |
+ * @interface |
+ */ |
+ProductRegistry.Registry = function() {}; |
+ |
+ProductRegistry.Registry.prototype = { |
+ /** |
+ * @param {!Common.ParsedURL} parsedUrl |
+ * @return {?string} |
+ */ |
+ nameForUrl: function(parsedUrl) {}, |
+ |
+ /** |
+ * @param {!Common.ParsedURL} parsedUrl |
+ * @return {?ProductRegistry.Registry.ProductEntry} |
+ */ |
+ entryForUrl: function(parsedUrl) {}, |
+ |
+ /** |
+ * @param {!Common.ParsedURL} parsedUrl |
+ * @return {?number} |
+ */ |
+ typeForUrl: function(parsedUrl) {}, |
+ |
+ /** |
+ * @param {!SDK.ResourceTreeFrame} frame |
+ * @return {?ProductRegistry.Registry.ProductEntry} |
+ */ |
+ entryForFrame: function(frame) {} |
+}; |
+ |
+/** @typedef {!{name: string, type: ?number}} */ |
+ProductRegistry.Registry.ProductEntry; |