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

Unified Diff: third_party/WebKit/Source/devtools/front_end/product_registry/ProductRegistry.js

Issue 2839273003: [Devtools] New structure and colorize rows for network products (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into NEW_DEPENDENCY_PRODUCTS Created 3 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698