RemoteType.h (1468B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_dom_RemoteType_h 8 #define mozilla_dom_RemoteType_h 9 10 #include "nsReadableUtils.h" 11 #include "nsString.h" 12 13 // These must match the similar ones in E10SUtils.sys.mjs and ProcInfo.h and 14 // ChromeUtils.webidl Process names as reported by about:memory are defined in 15 // ContentChild:RecvRemoteType. Add your value there too or it will be called 16 // "Web Content". 17 #define PREALLOC_REMOTE_TYPE "prealloc"_ns 18 #define WEB_REMOTE_TYPE "web"_ns 19 #define FILE_REMOTE_TYPE "file"_ns 20 #define EXTENSION_REMOTE_TYPE "extension"_ns 21 #define PRIVILEGEDABOUT_REMOTE_TYPE "privilegedabout"_ns 22 #define PRIVILEGEDMOZILLA_REMOTE_TYPE "privilegedmozilla"_ns 23 #define INFERENCE_REMOTE_TYPE "inference"_ns 24 25 #define DEFAULT_REMOTE_TYPE WEB_REMOTE_TYPE 26 27 // These must start with the WEB_REMOTE_TYPE above. 28 #define FISSION_WEB_REMOTE_TYPE "webIsolated"_ns 29 #define WITH_COOP_COEP_REMOTE_TYPE "webCOOP+COEP"_ns 30 #define WITH_COOP_COEP_REMOTE_TYPE_PREFIX "webCOOP+COEP="_ns 31 #define SERVICEWORKER_REMOTE_TYPE "webServiceWorker"_ns 32 33 // Remote type value used to represent being non-remote. 34 #define NOT_REMOTE_TYPE VoidCString() 35 36 #endif // mozilla_dom_RemoteType_h