| Index: Source/modules/crypto/DOMWindowCrypto.h
|
| diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.h b/Source/modules/crypto/DOMWindowCrypto.h
|
| similarity index 80%
|
| copy from Source/modules/donottrack/NavigatorDoNotTrack.h
|
| copy to Source/modules/crypto/DOMWindowCrypto.h
|
| index 0c044e7cd8edef2f8860c374d59f077e1e963816..2d87e7a0770a22ae2d22fe475194f90cce958b0d 100644
|
| --- a/Source/modules/donottrack/NavigatorDoNotTrack.h
|
| +++ b/Source/modules/crypto/DOMWindowCrypto.h
|
| @@ -28,32 +28,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef NavigatorDoNotTrack_h
|
| -#define NavigatorDoNotTrack_h
|
| +#ifndef DOMWindowCrypto_h
|
| +#define DOMWindowCrypto_h
|
|
|
| #include "core/page/DOMWindowProperty.h"
|
| #include "core/platform/Supplementable.h"
|
| -#include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -class Frame;
|
| -class Navigator;
|
| +class Crypto;
|
| +class DOMWindow;
|
|
|
| -class NavigatorDoNotTrack : public Supplement<Navigator>, public DOMWindowProperty {
|
| +class DOMWindowCrypto : public Supplement<DOMWindow>, public DOMWindowProperty {
|
| public:
|
| - virtual ~NavigatorDoNotTrack();
|
| - static NavigatorDoNotTrack* from(Navigator*);
|
| -
|
| - static String doNotTrack(Navigator*);
|
| -
|
| - String doNotTrack();
|
| + virtual ~DOMWindowCrypto();
|
| + static DOMWindowCrypto* from(DOMWindow*);
|
| + static Crypto* crypto(DOMWindow*);
|
| + Crypto* crypto() const;
|
|
|
| private:
|
| - explicit NavigatorDoNotTrack(Frame*);
|
| + explicit DOMWindowCrypto(DOMWindow*);
|
| static const char* supplementName();
|
| +
|
| + mutable RefPtr<Crypto> m_crypto;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // NavigatorDoNotTrack_h
|
| +#endif // DOMWindowCrypto_h
|
|
|