| Index: Source/core/frame/FrameHost.cpp
|
| diff --git a/Source/modules/crypto/RsaSsaParams.cpp b/Source/core/frame/FrameHost.cpp
|
| similarity index 79%
|
| copy from Source/modules/crypto/RsaSsaParams.cpp
|
| copy to Source/core/frame/FrameHost.cpp
|
| index 214efc3abb211625dde690b8891cc5c11f8851c4..b59f3bcc0fb97420728105b330c18dccbc31d88c 100644
|
| --- a/Source/modules/crypto/RsaSsaParams.cpp
|
| +++ b/Source/core/frame/FrameHost.cpp
|
| @@ -29,24 +29,35 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "modules/crypto/RsaSsaParams.h"
|
| +#include "core/frame/FrameHost.h"
|
|
|
| -#include "public/platform/WebCryptoAlgorithmParams.h"
|
| +#include "core/page/Page.h"
|
|
|
| namespace WebCore {
|
|
|
| -Algorithm* RsaSsaParams::hash()
|
| +PassOwnPtr<FrameHost> FrameHost::create(Page& page)
|
| {
|
| - if (!m_hash)
|
| - m_hash = Algorithm::create(m_algorithm.rsaSsaParams()->hash());
|
| - return m_hash.get();
|
| + return adoptPtr(new FrameHost(page));
|
| }
|
|
|
| -RsaSsaParams::RsaSsaParams(const blink::WebCryptoAlgorithm& algorithm)
|
| - : Algorithm(algorithm)
|
| +FrameHost::FrameHost(Page& page)
|
| + : m_page(page)
|
| {
|
| - ASSERT(algorithm.rsaSsaParams());
|
| - ScriptWrappable::init(this);
|
| }
|
|
|
| -} // namespace WebCore
|
| +Settings& FrameHost::settings() const
|
| +{
|
| + return m_page.settings();
|
| +}
|
| +
|
| +Chrome& FrameHost::chrome() const
|
| +{
|
| + return m_page.chrome();
|
| +}
|
| +
|
| +float FrameHost::deviceScaleFactor() const
|
| +{
|
| + return m_page.deviceScaleFactor();
|
| +}
|
| +
|
| +}
|
|
|