Bug 1562583 - Add license headers in devtools/shared/protocol files r=jlast
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 03 Jul 2019 18:00:30 +0000
changeset 543993 0efd635f7e152fb053c42b9c0cc5a18894ca4513
parent 543992 dc1ad84da67e3a3e51326c59cbe9bffdca6e0e1e
child 543994 7cfd4060d3f5726d3abd3be50d1a958eb94bb69a
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1562583
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562583 - Add license headers in devtools/shared/protocol files r=jlast Differential Revision: https://phabricator.services.mozilla.com/D36480
devtools/shared/protocol/Actor.js
devtools/shared/protocol/Actor/generateActorSpec.js
devtools/shared/protocol/Front.js
devtools/shared/protocol/Front/FrontClassWithSpec.js
devtools/shared/protocol/Pool.js
devtools/shared/protocol/Request.js
devtools/shared/protocol/Response.js
devtools/shared/protocol/lazy-pool.js
devtools/shared/protocol/types.js
devtools/shared/protocol/utils.js
--- a/devtools/shared/protocol/Actor.js
+++ b/devtools/shared/protocol/Actor.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 const { extend } = require("devtools/shared/extend");
 var { Pool } = require("./Pool");
 
 /**
  * Keep track of which actorSpecs have been created. If a replica of a spec
  * is created, it can be caught, and specs which inherit from other specs will
--- a/devtools/shared/protocol/Actor/generateActorSpec.js
+++ b/devtools/shared/protocol/Actor/generateActorSpec.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var { Request } = require("../Request");
 const { Response } = require("../Response");
 var { types, registeredTypes } = require("../types");
 
 /**
  * Generates an actor specification from an actor description.
--- a/devtools/shared/protocol/Front.js
+++ b/devtools/shared/protocol/Front.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var { settleAll } = require("devtools/shared/DevToolsUtils");
 var EventEmitter = require("devtools/shared/event-emitter");
 
 var { Pool } = require("./Pool");
 var {
   getStack,
--- a/devtools/shared/protocol/Front/FrontClassWithSpec.js
+++ b/devtools/shared/protocol/Front/FrontClassWithSpec.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var { Front } = require("../Front");
 
 /**
  * Generates request methods as described by the given actor specification on
  * the given front prototype. Returns the front prototype.
  */
--- a/devtools/shared/protocol/Pool.js
+++ b/devtools/shared/protocol/Pool.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var EventEmitter = require("devtools/shared/event-emitter");
 
 /**
  * Actor and Front implementations
  */
 
--- a/devtools/shared/protocol/Request.js
+++ b/devtools/shared/protocol/Request.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 const { extend } = require("devtools/shared/extend");
 var { findPlaceholders, describeTemplate, getPath } = require("./utils");
 var { types } = require("./types");
 
 /**
  * Manages a request template.
--- a/devtools/shared/protocol/Response.js
+++ b/devtools/shared/protocol/Response.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var { findPlaceholders, getPath, describeTemplate } = require("./utils");
 var { types } = require("./types");
 
 /**
  * Manages a response template.
  *
--- a/devtools/shared/protocol/lazy-pool.js
+++ b/devtools/shared/protocol/lazy-pool.js
@@ -223,9 +223,8 @@ LazyActor.prototype = {
     // replaces the old actor with the new actor.
     instance.actorID = this.actorID;
 
     this._pool.manage(instance);
 
     return instance;
   },
 };
-
--- a/devtools/shared/protocol/types.js
+++ b/devtools/shared/protocol/types.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 var { Actor } = require("./Actor");
 var { lazyLoadSpec, lazyLoadFront } = require("devtools/shared/specs/index");
 
 /**
  * Types: named marshallers/demarshallers.
  *
--- a/devtools/shared/protocol/utils.js
+++ b/devtools/shared/protocol/utils.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 function describeTemplate(template) {
   return JSON.parse(
     JSON.stringify(template, (key, value) => {
       if (value.describe) {
         return value.describe();
       }
@@ -68,9 +72,8 @@ exports.method = function(fn, spec = {})
   if (spec.request) {
     Object.freeze(spec.request);
   }
   if (spec.response) {
     Object.freeze(spec.response);
   }
   return fn;
 };
-