Lines Matching defs:web_contents

16 #include "content/browser/web_contents/web_contents_impl.h"
22 #include "content/public/browser/web_contents.h"
113 shell()->web_contents()->GetSiteInstance());
120 shell()->web_contents(),
127 WaitForLoadStop(new_shell->web_contents());
129 new_shell->web_contents()->GetLastCommittedURL().path());
133 new_shell->web_contents()->GetSiteInstance());
139 shell()->web_contents(),
147 new_shell->web_contents()->GetSiteInstance());
153 shell()->web_contents(),
175 shell()->web_contents()->GetSiteInstance());
182 shell()->web_contents(),
191 new_shell->web_contents()->GetVisibleURL().path());
194 WaitForLoadStop(new_shell->web_contents());
195 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
196 new_shell->web_contents());
197 EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->
202 new_shell->web_contents()->GetSiteInstance());
223 shell()->web_contents()->GetSiteInstance());
230 shell()->web_contents(),
240 new_shell->web_contents()->GetVisibleURL().path());
243 WaitForLoadStop(new_shell->web_contents());
244 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
245 new_shell->web_contents());
246 EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->
251 new_shell->web_contents()->GetSiteInstance());
271 shell()->web_contents()->GetSiteInstance());
278 shell()->web_contents(),
287 WaitForLoadStop(new_shell->web_contents());
289 new_shell->web_contents()->GetLastCommittedURL().path());
293 new_shell->web_contents()->GetSiteInstance());
313 shell()->web_contents()->GetSiteInstance());
319 shell()->web_contents(),
325 WaitForLoadStop(shell()->web_contents());
330 shell()->web_contents()->GetLastCommittedURL().path());
334 shell()->web_contents()->GetSiteInstance());
354 shell()->web_contents()->GetSiteInstance());
361 shell()->web_contents(),
368 WaitForLoadStop(new_shell->web_contents());
370 new_shell->web_contents()->GetLastCommittedURL().path());
374 new_shell->web_contents()->GetSiteInstance());
381 new_shell->web_contents()->GetSiteInstance());
385 TestNavigationObserver navigation_observer(new_shell->web_contents());
387 shell()->web_contents(),
395 new_shell->web_contents()->GetSiteInstance());
402 new_shell->web_contents()->GetSiteInstance());
403 WebContentsDestroyedWatcher close_watcher(new_shell->web_contents());
405 shell()->web_contents(),
433 shell()->web_contents()->GetSiteInstance());
440 shell()->web_contents(),
445 EXPECT_TRUE(new_shell->web_contents()->HasOpener());
448 WaitForLoadStop(new_shell->web_contents());
450 new_shell->web_contents()->GetLastCommittedURL().path());
454 new_shell->web_contents()->GetSiteInstance());
460 new_shell->web_contents()->GetSiteInstance());
462 EXPECT_TRUE(new_shell->web_contents()->HasOpener());
465 EXPECT_TRUE(ExecuteScript(new_shell->web_contents(),
467 EXPECT_FALSE(new_shell->web_contents()->HasOpener());
471 TestNavigationObserver back_nav_load_observer(new_shell->web_contents());
472 new_shell->web_contents()->GetController().GoBack();
477 new_shell->web_contents(),
481 EXPECT_FALSE(new_shell->web_contents()->HasOpener());
487 new_shell->web_contents(),
491 EXPECT_FALSE(new_shell->web_contents()->HasOpener());
500 EXPECT_TRUE(ExecuteScript(shell()->web_contents(),
504 EXPECT_TRUE(ExecuteScript(shell()->web_contents(),
530 WebContents* opener_contents = shell()->web_contents();
552 WebContents* foo_contents = new_shell->web_contents();
564 shell()->web_contents(),
572 WebContents* new_contents = new_shell2->web_contents();
671 WebContents* opener_contents = shell()->web_contents();
691 WebContents* foo_contents = new_shell->web_contents();
758 WebContents* orig_contents = shell()->web_contents();
774 WaitForLoadStop(new_shell->web_contents());
776 new_shell->web_contents()->GetLastCommittedURL().path());
780 new_shell->web_contents()->GetSiteInstance());
786 shell()->web_contents()->GetSiteInstance());
792 new_shell->web_contents(),
800 shell()->web_contents()->GetSiteInstance());
821 shell()->web_contents()->GetSiteInstance());
828 shell()->web_contents(),
835 WaitForLoadStop(new_shell->web_contents());
837 new_shell->web_contents()->GetLastCommittedURL().path());
841 new_shell->web_contents()->GetSiteInstance());
847 new_shell->web_contents()->GetSiteInstance());
863 shell()->web_contents()->GetSiteInstance());
874 shell()->web_contents()->GetSiteInstance());
884 shell()->web_contents()->GetSiteInstance());
887 shell()->web_contents()->GetVisibleURL().path());
889 shell()->web_contents()->GetController().GetLastCommittedEntry());
893 TitleWatcher title_watcher(shell()->web_contents(), expected_title);
896 shell()->web_contents(),
903 shell()->web_contents()->GetLastCommittedURL().path());
907 shell()->web_contents()->GetSiteInstance());
921 WebContents* orig_contents = shell()->web_contents();
937 WebContents* contents = new_shell->web_contents();
971 WebContents* orig_contents = shell()->web_contents();
990 WebContents* contents = new_shell->web_contents();
1017 WebContents* contents = shell()->web_contents();
1026 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1027 shell()->web_contents()->GetController().GoBack();
1031 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1032 shell()->web_contents()->GetController().GoBack();
1036 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1037 shell()->web_contents()->GetController().GoBack();
1043 TestNavigationObserver forward_nav_load_observer(shell()->web_contents());
1044 shell()->web_contents()->GetController().GoForward();
1048 TestNavigationObserver forward_nav_load_observer(shell()->web_contents());
1049 shell()->web_contents()->GetController().GoForward();
1055 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1056 shell()->web_contents()->GetController().GoBack();
1060 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1061 shell()->web_contents()->GetController().GoBack();
1067 TestNavigationObserver forward_nav_load_observer(shell()->web_contents());
1068 shell()->web_contents()->GetController().GoToIndex(4);
1091 shell()->web_contents(),
1098 WaitForLoadStop(new_shell->web_contents());
1100 new_shell->web_contents()->GetLastCommittedURL().path());
1102 RenderViewHost* rvh = new_shell->web_contents()->GetRenderViewHost();
1125 TestNavigationObserver back_nav_load_observer(new_shell->web_contents());
1126 new_shell->web_contents()->GetController().GoBack();
1131 new_shell->web_contents()->GetLastCommittedURL().path());
1133 EXPECT_EQ(rvh, new_shell->web_contents()->GetRenderViewHost());
1147 explicit RenderViewHostDestructionObserver(WebContents* web_contents)
1148 : WebContentsObserver(web_contents) {}
1182 RenderViewHostDestructionObserver rvh_observers(shell()->web_contents());
1190 RenderViewHost* blank_rvh = shell()->web_contents()->GetRenderViewHost();
1192 EXPECT_EQ(shell()->web_contents()->GetLastCommittedURL(), GURL::EmptyGURL());
1199 EXPECT_NE(blank_rvh, shell()->web_contents()->GetRenderViewHost());
1200 EXPECT_NE(blank_site_instance, shell()->web_contents()->
1203 shell()->web_contents()->GetRenderViewHost());
1209 SiteInstance* site_instance1 = shell()->web_contents()->
1212 shell()->web_contents()->GetRenderViewHost());
1216 shell()->web_contents()->GetRenderViewHost());
1217 SiteInstance* site_instance2 = shell()->web_contents()->
1226 shell()->web_contents()->GetRenderViewHost());
1257 shell()->web_contents()->GetSiteInstance());
1263 shell()->web_contents(),
1270 WaitForLoadStop(new_shell->web_contents());
1272 new_shell->web_contents()->GetLastCommittedURL().path());
1276 new_shell->web_contents()->GetSiteInstance());
1281 new_shell->web_contents()->GetSiteInstance());
1288 WaitForLoadStop(shell()->web_contents());
1290 shell()->web_contents()->GetLastCommittedURL());
1292 shell()->web_contents()->GetSiteInstance());
1311 TitleWatcher title_watcher(shell()->web_contents(), expected_title);
1317 shell()->web_contents(),
1334 shell()->web_contents()->GetRenderProcessHost()->GetID()));
1338 shell()->web_contents(),
1351 shell()->web_contents()->GetBrowserContext(), GURL(), NULL,
1354 shell2->web_contents(),
1369 shell()->web_contents()->GetRenderProcessHost()->GetID()));
1370 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
1371 shell()->web_contents());
1372 WebUIImpl* webui = web_contents->GetRenderManagerForTesting()->web_ui();
1374 EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->pending_web_ui());
1380 EXPECT_EQ(webui, web_contents->GetRenderManagerForTesting()->web_ui());
1381 EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->pending_web_ui());
1412 shell()->web_contents()->GetRenderProcessHost()->GetID()));
1415 TestNavigationObserver back_nav_load_observer(shell()->web_contents());
1416 shell()->web_contents()->GetController().GoBack();
1418 EXPECT_EQ(original_url, shell()->web_contents()->GetLastCommittedURL());
1420 shell()->web_contents()->GetRenderProcessHost()->GetID()));
1439 shell()->web_contents()->GetRenderProcessHost()->GetID()));
1440 SiteInstance* site_instance1 = shell()->web_contents()->GetSiteInstance();
1447 OpenUrlViaClickTarget(shell()->web_contents(), url2);
1451 new_shell->web_contents());