| Index: Source/modules/crypto/WorkerContextCrypto.h
|
| diff --git a/Source/modules/crypto/DOMWindowCrypto.h b/Source/modules/crypto/WorkerContextCrypto.h
|
| similarity index 78%
|
| copy from Source/modules/crypto/DOMWindowCrypto.h
|
| copy to Source/modules/crypto/WorkerContextCrypto.h
|
| index 2d87e7a0770a22ae2d22fe475194f90cce958b0d..7f0504a7ede801611b2554137052e97a38ed1865 100644
|
| --- a/Source/modules/crypto/DOMWindowCrypto.h
|
| +++ b/Source/modules/crypto/WorkerContextCrypto.h
|
| @@ -28,31 +28,30 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DOMWindowCrypto_h
|
| -#define DOMWindowCrypto_h
|
| +#ifndef WorkerContextCrypto_h
|
| +#define WorkerContextCrypto_h
|
|
|
| -#include "core/page/DOMWindowProperty.h"
|
| #include "core/platform/Supplementable.h"
|
|
|
| namespace WebCore {
|
|
|
| -class Crypto;
|
| -class DOMWindow;
|
| +class WorkerCrypto;
|
| +class ScriptExecutionContext;
|
|
|
| -class DOMWindowCrypto : public Supplement<DOMWindow>, public DOMWindowProperty {
|
| +class WorkerContextCrypto : public Supplement<ScriptExecutionContext> {
|
| public:
|
| - virtual ~DOMWindowCrypto();
|
| - static DOMWindowCrypto* from(DOMWindow*);
|
| - static Crypto* crypto(DOMWindow*);
|
| - Crypto* crypto() const;
|
| + virtual ~WorkerContextCrypto();
|
| + static WorkerContextCrypto* from(ScriptExecutionContext*);
|
| + static WorkerCrypto* crypto(ScriptExecutionContext*);
|
| + WorkerCrypto* crypto() const;
|
|
|
| private:
|
| - explicit DOMWindowCrypto(DOMWindow*);
|
| + WorkerContextCrypto();
|
| static const char* supplementName();
|
|
|
| - mutable RefPtr<Crypto> m_crypto;
|
| + mutable RefPtr<WorkerCrypto> m_crypto;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // DOMWindowCrypto_h
|
| +#endif // WorkerContextCrypto_h
|
|
|