OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 WebContents* web_contents); | 58 WebContents* web_contents); |
59 void OnNavigationEntryCommitted( | 59 void OnNavigationEntryCommitted( |
60 TestWebContentsObserver* observer, | 60 TestWebContentsObserver* observer, |
61 WebContents* web_contents, | 61 WebContents* web_contents, |
62 const LoadCommittedDetails& load_details); | 62 const LoadCommittedDetails& load_details); |
63 void OnDidAttachInterstitialPage(WebContents* web_contents); | 63 void OnDidAttachInterstitialPage(WebContents* web_contents); |
64 void OnDidStartLoading(WebContents* web_contents); | 64 void OnDidStartLoading(WebContents* web_contents); |
65 void OnDidStopLoading(WebContents* web_contents); | 65 void OnDidStopLoading(WebContents* web_contents); |
66 void OnDidStartProvisionalLoad(RenderFrameHost* render_frame_host, | 66 void OnDidStartProvisionalLoad(RenderFrameHost* render_frame_host, |
67 const GURL& validated_url, | 67 const GURL& validated_url, |
68 bool is_error_page, | 68 bool is_error_page); |
69 bool is_iframe_srcdoc); | |
70 void OnDidFailProvisionalLoad(RenderFrameHost* render_frame_host, | 69 void OnDidFailProvisionalLoad(RenderFrameHost* render_frame_host, |
71 const GURL& validated_url, | 70 const GURL& validated_url, |
72 int error_code, | 71 int error_code, |
73 const base::string16& error_description); | 72 const base::string16& error_description); |
74 void OnDidCommitProvisionalLoadForFrame(RenderFrameHost* render_frame_host, | 73 void OnDidCommitProvisionalLoadForFrame(RenderFrameHost* render_frame_host, |
75 const GURL& url, | 74 const GURL& url, |
76 ui::PageTransition transition_type); | 75 ui::PageTransition transition_type); |
77 | 76 |
78 // If true the navigation has started. | 77 // If true the navigation has started. |
79 bool navigation_started_; | 78 bool navigation_started_; |
(...skipping 18 matching lines...) Expand all Loading... |
98 | 97 |
99 // Living TestWebContentsObservers created by this observer. | 98 // Living TestWebContentsObservers created by this observer. |
100 std::set<std::unique_ptr<TestWebContentsObserver>> web_contents_observers_; | 99 std::set<std::unique_ptr<TestWebContentsObserver>> web_contents_observers_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(TestNavigationObserver); | 101 DISALLOW_COPY_AND_ASSIGN(TestNavigationObserver); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace content | 104 } // namespace content |
106 | 105 |
107 #endif // CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ | 106 #endif // CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ |
OLD | NEW |