From 2bf505b023d2bf08e5bb31ed275e42bf979f9714 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 5 Jul 2019 17:05:57 +0000 Subject: [PATCH] Bug 1562642 - Add missing MPL2 headers r=mhoye Differential Revision: https://phabricator.services.mozilla.com/D37053 --HG-- extra : moz-landing-system : lando --- dom/base/MimeType.cpp | 6 ++++++ dom/canvas/WebGLInternalFormatsTable.h | 6 ++++++ dom/ipc/RemoteBrowser.cpp | 6 ++++++ dom/l10n/DOMLocalization.cpp | 8 +++++++- dom/l10n/DOMLocalization.h | 8 +++++++- dom/l10n/L10nMutations.cpp | 6 ++++++ dom/l10n/L10nMutations.h | 6 ++++++ dom/l10n/L10nOverlays.cpp | 6 ++++++ dom/l10n/L10nOverlays.h | 6 ++++++ dom/media/BaseMediaResource.cpp | 6 ++++++ dom/media/WavDumper.h | 6 ++++++ dom/media/WebMSample.h | 6 ++++++ dom/media/gmp/widevine-adapter/WidevineFileIO.cpp | 6 ++++++ dom/media/hls/HLSUtils.cpp | 8 +++++++- dom/media/platforms/agnostic/AgnosticDecoderModule.h | 6 ++++++ .../systemservices/video_engine/browser_capture_impl.h | 6 ++++++ dom/media/webrtc/CubebDeviceEnumerator.cpp | 6 ++++++ dom/plugins/ipc/FunctionBrokerIPCUtils.h | 6 ++++++ dom/plugins/ipc/IpdlTuple.h | 6 ++++++ dom/xbl/builtin/ShortcutKeys.cpp | 6 ++++++ js/src/vm/List.cpp | 6 ++++++ netwerk/base/nsIURIMutatorUtils.cpp | 6 ++++++ netwerk/base/rust-helper/src/helper.h | 6 ++++++ netwerk/cache2/OldWrappers.cpp | 6 ++++++ netwerk/cache2/OldWrappers.h | 6 ++++++ netwerk/protocol/http/AltDataOutputStreamChild.cpp | 6 ++++++ 26 files changed, 159 insertions(+), 3 deletions(-) diff --git a/dom/base/MimeType.cpp b/dom/base/MimeType.cpp index 83881e1d8dc8..73399bc06709 100644 --- a/dom/base/MimeType.cpp +++ b/dom/base/MimeType.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "MimeType.h" #include "nsUnicharUtils.h" diff --git a/dom/canvas/WebGLInternalFormatsTable.h b/dom/canvas/WebGLInternalFormatsTable.h index dcd6b158ad83..efc1a7df471e 100644 --- a/dom/canvas/WebGLInternalFormatsTable.h +++ b/dom/canvas/WebGLInternalFormatsTable.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + // intentionally no include guard here. #ifndef HANDLE_WEBGL_INTERNAL_FORMAT diff --git a/dom/ipc/RemoteBrowser.cpp b/dom/ipc/RemoteBrowser.cpp index 47f4660a4cd1..3e69b10efbd6 100644 --- a/dom/ipc/RemoteBrowser.cpp +++ b/dom/ipc/RemoteBrowser.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "RemoteBrowser.h" #include "nsFrameLoader.h" diff --git a/dom/l10n/DOMLocalization.cpp b/dom/l10n/DOMLocalization.cpp index 69ab861d7555..f068a843def0 100644 --- a/dom/l10n/DOMLocalization.cpp +++ b/dom/l10n/DOMLocalization.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "js/ForOfIterator.h" // JS::ForOfIterator #include "js/JSON.h" // JS_ParseJSON #include "nsIScriptError.h" @@ -597,4 +603,4 @@ void DOMLocalization::ConvertStringToL10nArgs(JSContext* aCx, newEntry->mKey = entry.mKey; newEntry->mValue = entry.mValue; } -} \ No newline at end of file +} diff --git a/dom/l10n/DOMLocalization.h b/dom/l10n/DOMLocalization.h index 9a5438b0e29d..0d1b100a8607 100644 --- a/dom/l10n/DOMLocalization.h +++ b/dom/l10n/DOMLocalization.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef mozilla_dom_l10n_DOMLocalization_h #define mozilla_dom_l10n_DOMLocalization_h @@ -93,4 +99,4 @@ class DOMLocalization : public intl::Localization { } // namespace dom } // namespace mozilla -#endif \ No newline at end of file +#endif diff --git a/dom/l10n/L10nMutations.cpp b/dom/l10n/L10nMutations.cpp index 69bb8a5e5000..0f39fad6e857 100644 --- a/dom/l10n/L10nMutations.cpp +++ b/dom/l10n/L10nMutations.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "L10nMutations.h" #include "mozilla/dom/DocumentInlines.h" diff --git a/dom/l10n/L10nMutations.h b/dom/l10n/L10nMutations.h index bea5ff25c056..fc95b678595a 100644 --- a/dom/l10n/L10nMutations.h +++ b/dom/l10n/L10nMutations.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef mozilla_dom_l10n_L10nMutations_h #define mozilla_dom_l10n_L10nMutations_h diff --git a/dom/l10n/L10nOverlays.cpp b/dom/l10n/L10nOverlays.cpp index 452d809b0424..6fd5cbf2a3ad 100644 --- a/dom/l10n/L10nOverlays.cpp +++ b/dom/l10n/L10nOverlays.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "L10nOverlays.h" #include "mozilla/dom/HTMLTemplateElement.h" #include "mozilla/dom/HTMLInputElement.h" diff --git a/dom/l10n/L10nOverlays.h b/dom/l10n/L10nOverlays.h index a9be1bc68dd7..300bcfce4320 100644 --- a/dom/l10n/L10nOverlays.h +++ b/dom/l10n/L10nOverlays.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef mozilla_dom_l10n_L10nOverlays_h #define mozilla_dom_l10n_L10nOverlays_h diff --git a/dom/media/BaseMediaResource.cpp b/dom/media/BaseMediaResource.cpp index 4a36d7c20de1..f6ac11564892 100644 --- a/dom/media/BaseMediaResource.cpp +++ b/dom/media/BaseMediaResource.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "BaseMediaResource.h" #include "ChannelMediaResource.h" diff --git a/dom/media/WavDumper.h b/dom/media/WavDumper.h index 43e4fa14e7d1..08dbabcba917 100644 --- a/dom/media/WavDumper.h +++ b/dom/media/WavDumper.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #if !defined(WavDumper_h_) # define WavDumper_h_ # include diff --git a/dom/media/WebMSample.h b/dom/media/WebMSample.h index f0b9dcba7db4..ab06e7a68dbe 100644 --- a/dom/media/WebMSample.h +++ b/dom/media/WebMSample.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + static const uint8_t sWebMSample[] = { 0x1a, 0x45, 0xdf, 0xa3, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x42, 0x86, 0x81, 0x01, 0x42, 0xf7, 0x81, 0x01, 0x42, 0xf2, 0x81, 0x04, diff --git a/dom/media/gmp/widevine-adapter/WidevineFileIO.cpp b/dom/media/gmp/widevine-adapter/WidevineFileIO.cpp index ca97e2014de6..d805b417aa2e 100644 --- a/dom/media/gmp/widevine-adapter/WidevineFileIO.cpp +++ b/dom/media/gmp/widevine-adapter/WidevineFileIO.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "WidevineFileIO.h" #include "GMPLog.h" #include "WidevineUtils.h" diff --git a/dom/media/hls/HLSUtils.cpp b/dom/media/hls/HLSUtils.cpp index 18ec1699ac72..872de1ced63f 100644 --- a/dom/media/hls/HLSUtils.cpp +++ b/dom/media/hls/HLSUtils.cpp @@ -1,6 +1,12 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "HLSUtils.h" mozilla::LogModule* GetHLSLog() { static mozilla::LazyLogModule sLogModule("HLS"); return sLogModule; -} \ No newline at end of file +} diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.h b/dom/media/platforms/agnostic/AgnosticDecoderModule.h index 130fa29f7841..dea538c59f2f 100644 --- a/dom/media/platforms/agnostic/AgnosticDecoderModule.h +++ b/dom/media/platforms/agnostic/AgnosticDecoderModule.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #if !defined(AgnosticDecoderModule_h_) # define AgnosticDecoderModule_h_ diff --git a/dom/media/systemservices/video_engine/browser_capture_impl.h b/dom/media/systemservices/video_engine/browser_capture_impl.h index f960e43ef87c..7ead2d9cf4e9 100644 --- a/dom/media/systemservices/video_engine/browser_capture_impl.h +++ b/dom/media/systemservices/video_engine/browser_capture_impl.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef WEBRTC_MODULES_BROWSER_CAPTURE_MAIN_SOURCE_BROWSER_CAPTURE_IMPL_H_ #define WEBRTC_MODULES_BROWSER_CAPTURE_MAIN_SOURCE_BROWSER_CAPTURE_IMPL_H_ diff --git a/dom/media/webrtc/CubebDeviceEnumerator.cpp b/dom/media/webrtc/CubebDeviceEnumerator.cpp index 7d7b19137561..cda57ceaf03a 100644 --- a/dom/media/webrtc/CubebDeviceEnumerator.cpp +++ b/dom/media/webrtc/CubebDeviceEnumerator.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "CubebDeviceEnumerator.h" #include "mozilla/StaticPtr.h" diff --git a/dom/plugins/ipc/FunctionBrokerIPCUtils.h b/dom/plugins/ipc/FunctionBrokerIPCUtils.h index 99648c1ee4fb..6a1bc236c94a 100644 --- a/dom/plugins/ipc/FunctionBrokerIPCUtils.h +++ b/dom/plugins/ipc/FunctionBrokerIPCUtils.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef dom_plugins_ipc_functionbrokeripcutils_h #define dom_plugins_ipc_functionbrokeripcutils_h 1 diff --git a/dom/plugins/ipc/IpdlTuple.h b/dom/plugins/ipc/IpdlTuple.h index 8765ef5816ce..ed4409b45b1b 100644 --- a/dom/plugins/ipc/IpdlTuple.h +++ b/dom/plugins/ipc/IpdlTuple.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef dom_plugins_ipc_ipdltuple_h #define dom_plugins_ipc_ipdltuple_h diff --git a/dom/xbl/builtin/ShortcutKeys.cpp b/dom/xbl/builtin/ShortcutKeys.cpp index e91beadf328e..0a3be8dcd4e2 100644 --- a/dom/xbl/builtin/ShortcutKeys.cpp +++ b/dom/xbl/builtin/ShortcutKeys.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "mozilla/ShortcutKeys.h" #include "../nsXBLPrototypeHandler.h" #include "nsContentUtils.h" diff --git a/js/src/vm/List.cpp b/js/src/vm/List.cpp index 6524f72dc1fc..db1a70a209db 100644 --- a/js/src/vm/List.cpp +++ b/js/src/vm/List.cpp @@ -1,3 +1,9 @@ + :n/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "vm/List-inl.h" using namespace js; diff --git a/netwerk/base/nsIURIMutatorUtils.cpp b/netwerk/base/nsIURIMutatorUtils.cpp index 12a80fbf0627..6c7fd7c92bad 100644 --- a/netwerk/base/nsIURIMutatorUtils.cpp +++ b/netwerk/base/nsIURIMutatorUtils.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "nsIURIMutator.h" #include "nsIURI.h" #include "nsComponentManagerUtils.h" diff --git a/netwerk/base/rust-helper/src/helper.h b/netwerk/base/rust-helper/src/helper.h index 8f04b15427f0..92ec8f20b9a6 100644 --- a/netwerk/base/rust-helper/src/helper.h +++ b/netwerk/base/rust-helper/src/helper.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #ifndef RUST_NS_NET_HELPER #define RUST_NS_NET_HELPER diff --git a/netwerk/cache2/OldWrappers.cpp b/netwerk/cache2/OldWrappers.cpp index 6f05bc0700e5..10f482a259cc 100644 --- a/netwerk/cache2/OldWrappers.cpp +++ b/netwerk/cache2/OldWrappers.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + // Stuff to link the old imp to the new api - will go away! #include "CacheLog.h" diff --git a/netwerk/cache2/OldWrappers.h b/netwerk/cache2/OldWrappers.h index f0dee60fe5b6..fb356fed0ee6 100644 --- a/netwerk/cache2/OldWrappers.h +++ b/netwerk/cache2/OldWrappers.h @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + // Stuff to link the old imp to the new api - will go away! #ifndef OLDWRAPPERS__H__ diff --git a/netwerk/protocol/http/AltDataOutputStreamChild.cpp b/netwerk/protocol/http/AltDataOutputStreamChild.cpp index 502b48d05e33..1c52cf74aa85 100644 --- a/netwerk/protocol/http/AltDataOutputStreamChild.cpp +++ b/netwerk/protocol/http/AltDataOutputStreamChild.cpp @@ -1,3 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* 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/. */ + #include "mozilla/net/AltDataOutputStreamChild.h" #include "mozilla/Unused.h" #include "nsIInputStream.h"