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

Unified Diff: sky/engine/web/WebLocalFrameImpl.h

Issue 940703002: Make it possible to load a WebFrame from a URL (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Indent Created 5 years, 10 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 | « sky/engine/public/web/WebFrame.h ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebLocalFrameImpl.h
diff --git a/sky/engine/web/WebLocalFrameImpl.h b/sky/engine/web/WebLocalFrameImpl.h
index 9d31f66966544c29eacfae1f225d9bfe914c11fb..a0e99e8f2b560b3ed1d191721a184885601dd71c 100644
--- a/sky/engine/web/WebLocalFrameImpl.h
+++ b/sky/engine/web/WebLocalFrameImpl.h
@@ -32,6 +32,7 @@
#define SKY_ENGINE_WEB_WEBLOCALFRAMEIMPL_H_
#include "sky/engine/core/frame/LocalFrame.h"
+#include "sky/engine/platform/fetcher/MojoFetcher.h"
#include "sky/engine/platform/geometry/FloatRect.h"
#include "sky/engine/public/web/WebLocalFrame.h"
#include "sky/engine/web/FrameLoaderClientImpl.h"
@@ -56,6 +57,7 @@ template <typename T> class WebVector;
// Implementation of WebFrame, note that this is a reference counted object.
class WebLocalFrameImpl final
: public WebLocalFrame
+ , public MojoFetcher::Client
, public RefCounted<WebLocalFrameImpl> {
public:
// WebFrame methods:
@@ -70,6 +72,7 @@ public:
virtual void executeScript(const WebScriptSource&) override;
virtual void addMessageToConsole(const WebConsoleMessage&) override;
virtual void collectGarbage() override;
+ virtual void load(const WebURL&);
virtual void load(const WebURL&, mojo::ScopedDataPipeConsumerHandle);
virtual void replaceSelection(const WebString&) override;
virtual void insertText(const WebString&) override;
@@ -137,6 +140,9 @@ private:
// Sets the local core frame and registers destruction observers.
void setCoreFrame(PassRefPtr<LocalFrame>);
+ // MojoFetcher::Client
+ void OnReceivedResponse(mojo::URLResponsePtr) override;
+
FrameLoaderClientImpl m_frameLoaderClientImpl;
// The embedder retains a reference to the WebCore LocalFrame while it is active in the DOM. This
@@ -145,6 +151,7 @@ private:
RefPtr<LocalFrame> m_frame;
WebFrameClient* m_client;
+ OwnPtr<MojoFetcher> m_fetcher;
// Stores the additional input events offset and scale when device metrics emulation is enabled.
IntSize m_inputEventsOffsetForEmulation;
« no previous file with comments | « sky/engine/public/web/WebFrame.h ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698