Index: content/test/test_frame_navigation_observer.h |
diff --git a/content/test/test_frame_navigation_observer.h b/content/test/test_frame_navigation_observer.h |
index 9ff42c53e858e059a1e87f19623b90f30fff74e4..5330c48eb27afedbe9d92678cdd6979575b1036f 100644 |
--- a/content/test/test_frame_navigation_observer.h |
+++ b/content/test/test_frame_navigation_observer.h |
@@ -10,6 +10,7 @@ |
#include "base/callback.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
+#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/test/test_utils.h" |
@@ -19,7 +20,6 @@ namespace content { |
class FrameTreeNode; |
class RenderFrameHostImpl; |
class WebContents; |
-struct LoadCommittedDetails; |
// For content_browsertests, which run on the UI thread, run a second |
// MessageLoop and quit when the navigation in a specific frame completes |
@@ -38,6 +38,11 @@ class TestFrameNavigationObserver : public WebContentsObserver { |
// navigations are complete. |
void Wait(); |
+ // Returns the LoadCommittedDetails for the last navigation to commit. |
+ const LoadCommittedDetails& load_committed_details() const { |
+ return load_committed_details_; |
+ } |
+ |
private: |
// WebContentsObserver |
void DidStartProvisionalLoadForFrame(RenderFrameHost* render_frame_host, |
@@ -60,6 +65,8 @@ class TestFrameNavigationObserver : public WebContentsObserver { |
// The number of navigations to wait for. |
int number_of_navigations_; |
+ LoadCommittedDetails load_committed_details_; |
+ |
// The MessageLoopRunner used to spin the message loop. |
scoped_refptr<MessageLoopRunner> message_loop_runner_; |