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

Side by Side Diff: content/browser/frame_host/navigator.h

Issue 1194383003: Add a flag showing whether the current request was ignored by a handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failures (DidFailProvisionalLoad calls in unit tests) Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/navigator_delegate.h" 10 #include "content/browser/frame_host/navigator_delegate.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // The RenderFrameHostImpl has failed a provisional load. 59 // The RenderFrameHostImpl has failed a provisional load.
60 virtual void DidFailProvisionalLoadWithError( 60 virtual void DidFailProvisionalLoadWithError(
61 RenderFrameHostImpl* render_frame_host, 61 RenderFrameHostImpl* render_frame_host,
62 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; 62 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {};
63 63
64 // The RenderFrameHostImpl has failed to load the document. 64 // The RenderFrameHostImpl has failed to load the document.
65 virtual void DidFailLoadWithError( 65 virtual void DidFailLoadWithError(
66 RenderFrameHostImpl* render_frame_host, 66 RenderFrameHostImpl* render_frame_host,
67 const GURL& url, 67 const GURL& url,
68 int error_code, 68 int error_code,
69 const base::string16& error_description) {} 69 const base::string16& error_description,
70 bool was_ignored_by_handler) {}
70 71
71 // The RenderFrameHostImpl has committed a navigation. 72 // The RenderFrameHostImpl has committed a navigation.
72 virtual void DidNavigate( 73 virtual void DidNavigate(
73 RenderFrameHostImpl* render_frame_host, 74 RenderFrameHostImpl* render_frame_host,
74 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} 75 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {}
75 76
76 // Called by the NavigationController to cause the Navigator to navigate 77 // Called by the NavigationController to cause the Navigator to navigate
77 // to the current pending entry. The NavigationController should be called 78 // to the current pending entry. The NavigationController should be called
78 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. 79 // back with RendererDidNavigate on success or DiscardPendingEntry on failure.
79 // The callbacks can be inside of this function, or at some future time. 80 // The callbacks can be inside of this function, or at some future time.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); 182 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node);
182 183
183 protected: 184 protected:
184 friend class base::RefCounted<Navigator>; 185 friend class base::RefCounted<Navigator>;
185 virtual ~Navigator() {} 186 virtual ~Navigator() {}
186 }; 187 };
187 188
188 } // namespace content 189 } // namespace content
189 190
190 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 191 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_browsertest.cc ('k') | content/browser/frame_host/navigator_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698