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); |
69 void OnDidFailProvisionalLoad(RenderFrameHost* render_frame_host, | 70 void OnDidFailProvisionalLoad(RenderFrameHost* render_frame_host, |
70 const GURL& validated_url, | 71 const GURL& validated_url, |
71 int error_code, | 72 int error_code, |
72 const base::string16& error_description); | 73 const base::string16& error_description); |
73 void OnDidCommitProvisionalLoadForFrame(RenderFrameHost* render_frame_host, | 74 void OnDidCommitProvisionalLoadForFrame(RenderFrameHost* render_frame_host, |
74 const GURL& url, | 75 const GURL& url, |
75 ui::PageTransition transition_type); | 76 ui::PageTransition transition_type); |
76 | 77 |
77 // If true the navigation has started. | 78 // If true the navigation has started. |
78 bool navigation_started_; | 79 bool navigation_started_; |
(...skipping 18 matching lines...) Expand all Loading... |
97 | 98 |
98 // Living TestWebContentsObservers created by this observer. | 99 // Living TestWebContentsObservers created by this observer. |
99 std::set<std::unique_ptr<TestWebContentsObserver>> web_contents_observers_; | 100 std::set<std::unique_ptr<TestWebContentsObserver>> web_contents_observers_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(TestNavigationObserver); | 102 DISALLOW_COPY_AND_ASSIGN(TestNavigationObserver); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace content | 105 } // namespace content |
105 | 106 |
106 #endif // CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ | 107 #endif // CONTENT_PUBLIC_TEST_TEST_NAVIGATION_OBSERVER_H_ |
OLD | NEW |