Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3354)

Unified Diff: Source/modules/crypto/DOMWindowCrypto.h

Issue 15901021: Move window.crypto to modules/crypto (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile error in debug mode Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/crypto/Crypto.idl ('k') | Source/modules/crypto/DOMWindowCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/crypto/Crypto.idl ('k') | Source/modules/crypto/DOMWindowCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698