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

Unified Diff: components/html_viewer/html_frame.h

Issue 1375083002: Mandoline: html_frame returns WebNavigationPolicyHandledByClient to blink when the navigation reque… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « components/html_viewer/html_document.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame.h
diff --git a/components/html_viewer/html_frame.h b/components/html_viewer/html_frame.h
index 644160570d1e29395ce3d906541da0e02e5947e2..fef256ab44ae835801a49a7b377a8c7420bd7ba0 100644
--- a/components/html_viewer/html_frame.h
+++ b/components/html_viewer/html_frame.h
@@ -147,6 +147,8 @@ class HTMLFrame : public blink::WebFrameClient,
// Returns true if this or one of the frames descendants is local.
bool HasLocalDescendant() const;
+ void LoadRequest(const blink::WebURLRequest& request);
+
protected:
virtual ~HTMLFrame();
@@ -167,6 +169,7 @@ class HTMLFrame : public blink::WebFrameClient,
virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame);
virtual blink::WebNavigationPolicy decidePolicyForNavigation(
const NavigationPolicyInfo& info);
+ virtual bool hasPendingNavigation(blink::WebLocalFrame* frame);
virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
const blink::WebString& source_name,
@@ -332,6 +335,10 @@ class HTMLFrame : public blink::WebFrameClient,
scoped_ptr<DevToolsAgentImpl> devtools_agent_;
+ // A navigation request has been sent to the frame server side, and we haven't
+ // received response to it.
+ bool pending_navigation_;
+
base::WeakPtrFactory<HTMLFrame> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(HTMLFrame);
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698