tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GeckoViewExternalAppService.h (819B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 * This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef GeckoViewExternalAppService_h__
      7 #define GeckoViewExternalAppService_h__
      8 
      9 #include "nsIExternalHelperAppService.h"
     10 #include "mozilla/StaticPtr.h"
     11 
     12 class GeckoViewExternalAppService : public nsIExternalHelperAppService {
     13 public:
     14  NS_DECL_ISUPPORTS
     15  NS_DECL_NSIEXTERNALHELPERAPPSERVICE
     16 
     17  GeckoViewExternalAppService();
     18 
     19  static already_AddRefed<GeckoViewExternalAppService> GetSingleton();
     20 
     21 private:
     22  virtual ~GeckoViewExternalAppService() {}
     23  static mozilla::StaticRefPtr<GeckoViewExternalAppService> sService;
     24 };
     25 
     26 #endif