Lines Matching full:browser
15 #include "tests/shared/browser/client_app_browser.h"
68 CefRefPtr<CefBrowser> browser, in OnBrowserCreated() argument
81 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
87 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
90 EXPECT_EQ(item.can_go_back, browser->CanGoBack()) in OnLoadingStateChange()
94 EXPECT_EQ(item.can_go_forward, browser->CanGoForward()) in OnLoadingStateChange()
103 SendTestResultsIfDone(browser, browser->GetMainFrame()); in OnLoadingStateChange()
107 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
119 EXPECT_EQ(item.can_go_back, browser->CanGoBack()); in OnLoadStart()
120 EXPECT_EQ(item.can_go_forward, browser->CanGoForward()); in OnLoadStart()
123 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
133 EXPECT_EQ(item.can_go_back, browser->CanGoBack()); in OnLoadEnd()
134 EXPECT_EQ(item.can_go_forward, browser->CanGoForward()); in OnLoadEnd()
136 SendTestResultsIfDone(browser, frame); in OnLoadEnd()
140 void SendTestResultsIfDone(CefRefPtr<CefBrowser> browser, in SendTestResultsIfDone() argument
143 SendTestResults(browser, frame); in SendTestResultsIfDone()
147 void SendTestResults(CefRefPtr<CefBrowser> browser, in SendTestResults() argument
157 // Return the result to the browser process. in SendTestResults()
273 // Browser side.
298 // Create the browser. in RunTest()
305 void RunNav(CefRefPtr<CefBrowser> browser) { in RunNav() argument
317 browser->GetMainFrame()->LoadURL(item.target); in RunNav()
320 browser->GoBack(); in RunNav()
323 browser->GoForward(); in RunNav()
327 // browser->GetHost()->ClearHistory(); in RunNav()
330 RunNav(browser); in RunNav()
337 void RunNextNavIfReady(CefRefPtr<CefBrowser> browser) { in RunNextNavIfReady() argument
344 RunNav(browser); in RunNextNavIfReady()
348 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
349 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
351 RunNav(browser); in OnAfterCreated()
354 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
377 EXPECT_EQ(last_item.can_go_back, browser->CanGoBack()); in OnBeforeBrowse()
378 EXPECT_EQ(last_item.can_go_forward, browser->CanGoForward()); in OnBeforeBrowse()
380 EXPECT_FALSE(browser->CanGoBack()); in OnBeforeBrowse()
381 EXPECT_FALSE(browser->CanGoForward()); in OnBeforeBrowse()
388 CefRefPtr<CefBrowser> browser, in OnBeforeResourceLoad() argument
420 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
437 RunNextNavIfReady(browser); in OnLoadingStateChange()
440 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
443 if (browser->IsPopup() || !frame->IsMain()) in OnLoadStart()
456 std::string url1 = browser->GetMainFrame()->GetURL(); in OnLoadStart()
462 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
465 if (browser->IsPopup() || !frame->IsMain()) in OnLoadEnd()
475 browser->GetHost()->GetNavigationEntries(visitor.get(), false); in OnLoadEnd()
478 std::string url1 = browser->GetMainFrame()->GetURL(); in OnLoadEnd()
484 RunNextNavIfReady(browser); in OnLoadEnd()
487 bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, in OnProcessMessageReceived() argument
501 RunNextNavIfReady(browser); in OnProcessMessageReceived()
566 // Browser side.
614 // Create the browser. in RunTest()
621 void RunNav(CefRefPtr<CefBrowser> browser) { in RunNav() argument
627 browser->GetMainFrame()->LoadURL(kDynIfrNav1); in RunNav()
629 browser->GetMainFrame()->LoadURL(kDynIfrNav2); in RunNav()
631 browser->GoBack(); in RunNav()
633 browser->Reload(); in RunNav()
637 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
638 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
641 RunNav(browser); in OnAfterCreated()
644 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
652 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
657 CefString url = browser->GetMainFrame()->GetURL(); in OnLoadEnd()
667 RunNav(browser); in OnLoadEnd()
816 CefRefPtr<CefResourceHandler> Create(CefRefPtr<CefBrowser> browser, in Create() argument
833 // Create the browser. in RunTest()
841 CefRefPtr<CefBrowser> browser, in OnBeforeResourceLoad() argument
869 void OnResourceRedirect(CefRefPtr<CefBrowser> browser, in OnResourceRedirect() argument
912 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
927 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
963 // Create the browser. in RunTest()
970 void OnResourceRedirect(CefRefPtr<CefBrowser> browser, in OnResourceRedirect() argument
1063 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
1078 void OnLoadStart(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame) { in OnLoadStart() argument
1084 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
1107 << "Popup: " << is_popup_ << "; Browser Side: " << browser_side_; in Verify()
1109 << "Popup: " << is_popup_ << "; Browser Side: " << browser_side_; in Verify()
1111 << "Popup: " << is_popup_ << "; Browser Side: " << browser_side_; in Verify()
1113 << "Popup: " << is_popup_ << "; Browser Side: " << browser_side_; in Verify()
1148 CefRefPtr<CefBrowser> browser, in OnBrowserCreated() argument
1156 if (browser->IsPopup()) { in OnBrowserCreated()
1162 browser_id_popup_ = browser->GetIdentifier(); in OnBrowserCreated()
1163 EXPECT_GT(browser->GetIdentifier(), 0); in OnBrowserCreated()
1170 browser_id_main_ = browser->GetIdentifier(); in OnBrowserCreated()
1171 EXPECT_GT(browser->GetIdentifier(), 0); in OnBrowserCreated()
1173 browser_main_ = browser; in OnBrowserCreated()
1178 CefRefPtr<CefBrowser> browser) override { in OnBrowserDestroyed() argument
1184 if (browser->IsPopup()) { in OnBrowserDestroyed()
1190 EXPECT_EQ(browser_id_popup_, browser->GetIdentifier()); in OnBrowserDestroyed()
1191 EXPECT_GT(browser->GetIdentifier(), 0); in OnBrowserDestroyed()
1202 EXPECT_EQ(browser_id_main_, browser->GetIdentifier()); in OnBrowserDestroyed()
1203 EXPECT_GT(browser->GetIdentifier(), 0); in OnBrowserDestroyed()
1217 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
1223 if (browser->IsPopup()) { in OnLoadingStateChange()
1227 state_popup_.OnLoadingStateChange(browser, isLoading, canGoBack, in OnLoadingStateChange()
1233 state_main_.OnLoadingStateChange(browser, isLoading, canGoBack, in OnLoadingStateChange()
1238 SendTestResultsIfDone(browser, browser->GetMainFrame()); in OnLoadingStateChange()
1241 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
1246 if (browser->IsPopup()) { in OnLoadStart()
1250 state_popup_.OnLoadStart(browser, frame); in OnLoadStart()
1255 state_main_.OnLoadStart(browser, frame); in OnLoadStart()
1259 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
1264 if (browser->IsPopup()) { in OnLoadEnd()
1268 state_popup_.OnLoadEnd(browser, frame, httpStatusCode); in OnLoadEnd()
1273 state_main_.OnLoadEnd(browser, frame, httpStatusCode); in OnLoadEnd()
1276 SendTestResultsIfDone(browser, frame); in OnLoadEnd()
1279 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
1289 void SendTestResultsIfDone(CefRefPtr<CefBrowser> browser, in SendTestResultsIfDone() argument
1292 if (browser->IsPopup()) in SendTestResultsIfDone()
1298 SendTestResults(browser, frame, kOrderNavMsg); in SendTestResultsIfDone()
1302 void SendTestResults(CefRefPtr<CefBrowser> browser, in SendTestResults() argument
1308 // Return the result to the browser process. in SendTestResults()
1314 if (browser->IsPopup()) in SendTestResults()
1338 // Browser side.
1361 // Create the browser. in RunTest()
1368 void ContinueIfReady(CefRefPtr<CefBrowser> browser) { in ContinueIfReady() argument
1373 if (browser->IsPopup()) in ContinueIfReady()
1382 if (!browser->IsPopup()) { in ContinueIfReady()
1384 browser->GetMainFrame()->ExecuteJavaScript( in ContinueIfReady()
1393 CefRefPtr<CefBrowser> browser, in OnBeforePopup() argument
1409 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
1410 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
1412 if (browser->IsPopup()) { in OnAfterCreated()
1413 browser_id_popup_ = browser->GetIdentifier(); in OnAfterCreated()
1415 browser_popup_ = browser; in OnAfterCreated()
1417 browser_id_main_ = browser->GetIdentifier(); in OnAfterCreated()
1422 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
1429 if (browser->IsPopup()) { in OnBeforeBrowse()
1431 EXPECT_GT(browser->GetIdentifier(), 0); in OnBeforeBrowse()
1432 EXPECT_EQ(browser_id_popup_, browser->GetIdentifier()); in OnBeforeBrowse()
1436 EXPECT_GT(browser->GetIdentifier(), 0); in OnBeforeBrowse()
1437 EXPECT_EQ(browser_id_main_, browser->GetIdentifier()); in OnBeforeBrowse()
1443 EXPECT_FALSE(browser->IsPopup()); in OnBeforeBrowse()
1445 EXPECT_TRUE(browser->IsPopup()); in OnBeforeBrowse()
1453 CefRefPtr<CefBrowser> browser, in OnBeforeResourceLoad() argument
1464 if (browser->IsPopup()) { in OnBeforeResourceLoad()
1466 EXPECT_GT(browser->GetIdentifier(), 0); in OnBeforeResourceLoad()
1467 EXPECT_EQ(browser_id_popup_, browser->GetIdentifier()); in OnBeforeResourceLoad()
1470 EXPECT_GT(browser->GetIdentifier(), 0); in OnBeforeResourceLoad()
1471 EXPECT_EQ(browser_id_main_, browser->GetIdentifier()); in OnBeforeResourceLoad()
1477 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
1481 if (browser->IsPopup()) { in OnLoadingStateChange()
1482 state_popup_.OnLoadingStateChange(browser, isLoading, canGoBack, in OnLoadingStateChange()
1485 state_main_.OnLoadingStateChange(browser, isLoading, canGoBack, in OnLoadingStateChange()
1490 ContinueIfReady(browser); in OnLoadingStateChange()
1493 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
1496 if (browser->IsPopup()) { in OnLoadStart()
1498 state_popup_.OnLoadStart(browser, frame); in OnLoadStart()
1501 state_main_.OnLoadStart(browser, frame); in OnLoadStart()
1505 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
1508 if (browser->IsPopup()) { in OnLoadEnd()
1509 state_popup_.OnLoadEnd(browser, frame, httpStatusCode); in OnLoadEnd()
1511 state_main_.OnLoadEnd(browser, frame, httpStatusCode); in OnLoadEnd()
1514 ContinueIfReady(browser); in OnLoadEnd()
1517 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
1522 ADD_FAILURE() << "browser OnLoadError url: " << failedUrl.ToString() in OnLoadError()
1526 bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, in OnProcessMessageReceived() argument
1530 if (browser->IsPopup()) { in OnProcessMessageReceived()
1531 EXPECT_GT(browser->GetIdentifier(), 0); in OnProcessMessageReceived()
1532 EXPECT_EQ(browser_id_popup_, browser->GetIdentifier()); in OnProcessMessageReceived()
1534 EXPECT_GT(browser->GetIdentifier(), 0); in OnProcessMessageReceived()
1535 EXPECT_EQ(browser_id_main_, browser->GetIdentifier()); in OnProcessMessageReceived()
1545 if (browser->IsPopup()) { in OnProcessMessageReceived()
1554 ContinueIfReady(browser); in OnProcessMessageReceived()
1620 CefRefPtr<CefBrowser> browser, in OnBrowserCreated() argument
1627 browser_id_ = browser->GetIdentifier(); in OnBrowserCreated()
1633 CefRefPtr<CefBrowser> browser) override { in OnBrowserDestroyed() argument
1640 EXPECT_EQ(browser_id_, browser->GetIdentifier()); in OnBrowserDestroyed()
1652 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
1661 EXPECT_EQ(browser_id_, browser->GetIdentifier()); in OnLoadingStateChange()
1664 SendTestResults(browser, browser->GetMainFrame()); in OnLoadingStateChange()
1670 void SendTestResults(CefRefPtr<CefBrowser> browser, in SendTestResults() argument
1675 // Return the result to the browser process. in SendTestResults()
1681 EXPECT_TRUE(args->SetInt(1, browser->GetIdentifier())); in SendTestResults()
1696 // Browser side.
1738 // Create the browser. in RunTest()
1745 void ContinueIfReady(CefRefPtr<CefBrowser> browser) { in ContinueIfReady() argument
1749 std::string url = browser->GetMainFrame()->GetURL(); in ContinueIfReady()
1768 browser->GetMainFrame()->LoadURL(GetURL2()); in ContinueIfReady()
1785 browser->GetHost()->SendMouseClickEvent(mouse_event, button_type, false, in ContinueIfReady()
1787 browser->GetHost()->SendMouseClickEvent(mouse_event, button_type, true, in ContinueIfReady()
1804 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
1805 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
1808 browser_id_current_ = browser->GetIdentifier(); in OnAfterCreated()
1820 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
1846 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnBeforeBrowse()
1860 bool OnOpenURLFromTab(CefRefPtr<CefBrowser> browser, in OnOpenURLFromTab() argument
1868 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnOpenURLFromTab()
1889 browser->GetMainFrame()->LoadURL(target_url); in OnOpenURLFromTab()
1897 CefRefPtr<CefBrowser> browser, in OnBeforeResourceLoad() argument
1916 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnBeforeResourceLoad()
1923 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
1927 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnLoadStart()
1938 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
1942 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnLoadEnd()
1945 ContinueIfReady(browser); in OnLoadEnd()
1948 bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, in OnProcessMessageReceived() argument
1953 EXPECT_EQ(browser_id_current_, browser->GetIdentifier()); in OnProcessMessageReceived()
1969 ContinueIfReady(browser); in OnProcessMessageReceived()
2166 // Create the browser. in RunTest()
2173 bool OnBeforePopup(CefRefPtr<CefBrowser> browser, in OnBeforePopup() argument
2193 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
2194 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
2196 if (browser->IsPopup()) { in OnAfterCreated()
2198 browser_id_[after_created_ct_] = browser->GetIdentifier(); in OnAfterCreated()
2203 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
2210 if (browser->IsPopup()) { in OnLoadingStateChange()
2211 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
2213 if (browser->GetIdentifier() == browser_id_[i]) { in OnLoadingStateChange()
2217 CloseBrowser(browser, true); in OnLoadingStateChange()
2225 void OnBeforeClose(CefRefPtr<CefBrowser> browser) override { in OnBeforeClose() argument
2226 TestHandler::OnBeforeClose(browser); in OnBeforeClose()
2228 if (browser->IsPopup()) { in OnBeforeClose()
2229 const std::string& url = browser->GetMainFrame()->GetURL(); in OnBeforeClose()
2231 if (browser->GetIdentifier() == browser_id_[i]) { in OnBeforeClose()
2309 // Create the browser. in RunTest()
2316 bool OnBeforePopup(CefRefPtr<CefBrowser> browser, in OnBeforePopup() argument
2332 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
2333 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
2335 if (browser->IsPopup()) { in OnAfterCreated()
2338 popup1_ = browser; in OnAfterCreated()
2340 popup2_ = browser; in OnAfterCreated()
2346 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
2353 if (browser->IsPopup()) { in OnLoadingStateChange()
2354 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
2356 EXPECT_TRUE(browser->IsSame(popup2_)); in OnLoadingStateChange()
2359 // OnLoadingStateChange is not currently called for browser-side in OnLoadingStateChange()
2367 EXPECT_TRUE(browser->IsSame(popup1_)); in OnLoadingStateChange()
2372 CloseBrowser(browser, true); in OnLoadingStateChange()
2373 } else if (browser->GetMainFrame()->GetURL() == kPopupJSOpenMainUrl) { in OnLoadingStateChange()
2378 browser->GetMainFrame()->LoadURL( in OnLoadingStateChange()
2384 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
2393 void OnBeforeClose(CefRefPtr<CefBrowser> browser) override { in OnBeforeClose() argument
2394 TestHandler::OnBeforeClose(browser); in OnBeforeClose()
2407 // OnLoadingStateChange is not currently called for browser-side in DestroyTest()
2447 // Create the browser. in RunTest()
2454 bool OnBeforePopup(CefRefPtr<CefBrowser> browser, in OnBeforePopup() argument
2470 void OnAfterCreated(CefRefPtr<CefBrowser> browser) override { in OnAfterCreated() argument
2471 TestHandler::OnAfterCreated(browser); in OnAfterCreated()
2473 if (browser->IsPopup()) { in OnAfterCreated()
2478 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
2485 if (browser->IsPopup()) { in OnLoadingStateChange()
2487 CloseBrowser(browser, true); in OnLoadingStateChange()
2489 browser->GetMainFrame()->LoadURL("javascript:window.open('')"); in OnLoadingStateChange()
2493 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
2502 void OnBeforeClose(CefRefPtr<CefBrowser> browser) override { in OnBeforeClose() argument
2503 TestHandler::OnBeforeClose(browser); in OnBeforeClose()
2505 if (browser->IsPopup()) { in OnBeforeClose()
2543 // Browser side.
2551 // Create the browser. in RunTest()
2558 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
2565 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnBeforeBrowse()
2573 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
2578 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadStart()
2584 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
2589 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadEnd()
2596 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
2603 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadError()
2613 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
2617 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
2618 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadingStateChange()
2705 // Browser side.
2713 // Create the browser. in RunTest()
2721 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
2728 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnBeforeBrowse()
2736 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
2741 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadStart()
2747 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
2752 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadEnd()
2759 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
2767 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
2771 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
2772 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadingStateChange()
2908 // Browser side.
2914 // Create the browser. in RunTest()
2921 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
2937 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnBeforeBrowse()
2946 CefRefPtr<CefBrowser> browser, in GetResourceHandler() argument
2960 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in GetResourceHandler()
2971 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
2978 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
2985 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
2990 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadError()
2997 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
3001 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
3002 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadingStateChange()
3152 // Browser side.
3158 // Create the browser. in RunTest()
3165 bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser, in OnBeforeBrowse() argument
3181 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnBeforeBrowse()
3190 CefRefPtr<CefBrowser> browser, in GetResourceHandler() argument
3204 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in GetResourceHandler()
3209 // The required delay is longer when browser-side navigation is enabled. in GetResourceHandler()
3217 void OnLoadStart(CefRefPtr<CefBrowser> browser, in OnLoadStart() argument
3231 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadStart()
3237 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
3251 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadEnd()
3258 void OnLoadError(CefRefPtr<CefBrowser> browser, in OnLoadError() argument
3274 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadError()
3280 void OnLoadingStateChange(CefRefPtr<CefBrowser> browser, in OnLoadingStateChange() argument
3284 const std::string& url = browser->GetMainFrame()->GetURL(); in OnLoadingStateChange()
3285 EXPECT_EQ(GetBrowserId(), browser->GetIdentifier()); in OnLoadingStateChange()
3397 CefRefPtr<CefBrowser> browser, in OnBrowserCreated() argument
3407 SendTestResults(browser, browser->GetMainFrame()); in OnBrowserCreated()
3412 void SendTestResults(CefRefPtr<CefBrowser> browser, in SendTestResults() argument
3422 EXPECT_TRUE(args->SetBool(1, browser->IsPopup())); in SendTestResults()
3444 // Create the browser. in RunTest()
3451 void OnLoadEnd(CefRefPtr<CefBrowser> browser, in OnLoadEnd() argument
3457 browser->GetMainFrame()->ExecuteJavaScript( in OnLoadEnd()
3463 bool OnBeforePopup(CefRefPtr<CefBrowser> browser, in OnBeforePopup() argument
3488 bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, in OnProcessMessageReceived() argument