1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/dns/ChildDNSService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set sw=2 ts=8 et tw=80 : */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef mozilla_net_ChildDNSService_h 1.11 +#define mozilla_net_ChildDNSService_h 1.12 + 1.13 + 1.14 +#include "nsPIDNSService.h" 1.15 +#include "nsIObserver.h" 1.16 +#include "mozilla/Attributes.h" 1.17 + 1.18 +namespace mozilla { 1.19 +namespace net { 1.20 + 1.21 +class ChildDNSService MOZ_FINAL 1.22 + : public nsPIDNSService 1.23 + , public nsIObserver 1.24 +{ 1.25 +public: 1.26 + // AsyncResolve (and CancelAsyncResolve) can be called off-main 1.27 + NS_DECL_THREADSAFE_ISUPPORTS 1.28 + NS_DECL_NSPIDNSSERVICE 1.29 + NS_DECL_NSIDNSSERVICE 1.30 + NS_DECL_NSIOBSERVER 1.31 + 1.32 + ChildDNSService(); 1.33 + virtual ~ChildDNSService(); 1.34 + 1.35 + static ChildDNSService* GetSingleton(); 1.36 + 1.37 +private: 1.38 + bool mFirstTime; 1.39 + bool mOffline; 1.40 + bool mDisablePrefetch; 1.41 +}; 1.42 + 1.43 +} // namespace net 1.44 +} // namespace mozilla 1.45 +#endif // mozilla_net_ChildDNSService_h