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

Unified Diff: Source/core/frame/FrameHost.cpp

Issue 115293005: Add a layer of indirection between Frame and Page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make GCC happy Created 7 years 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/core/frame/FrameHost.h ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
+
+}
« no previous file with comments | « Source/core/frame/FrameHost.h ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698