Home | History | Annotate | Download | only in extensions

Lines Matching refs:browser

6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/extensions/extension_process_manager.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_list.h"
14 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/tab_contents/tab_contents.h"
22 static void WindowOpenHelper(Browser* browser,
32 Browser* last_active_browser = BrowserList::GetLastActive();
84 browser()->NewTab();
85 ui_test_utils::NavigateToURL(browser(), base_url.Resolve("path1/empty.html"));
86 browser()->NewTab();
87 ui_test_utils::NavigateToURL(browser(), base_url.Resolve("path2/empty.html"));
88 browser()->NewTab();
89 ui_test_utils::NavigateToURL(browser(), base_url.Resolve("path3/empty.html"));
94 ASSERT_EQ(4, browser()->tab_count());
95 RenderViewHost* host = browser()->GetTabContentsAt(1)->render_view_host();
98 browser()->GetTabContentsAt(2)->render_view_host()->process());
100 browser()->GetTabContentsAt(3)->render_view_host()->process());
103 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile()));
104 WindowOpenHelper(browser(), host,
106 WindowOpenHelper(browser(), host,
112 WindowOpenHelper(browser(), host,
119 NavigateTabHelper(browser()->GetTabContentsAt(2), non_app_url);
120 NavigateTabHelper(browser()->GetTabContentsAt(3), app_url);
125 browser()->GetTabContentsAt(2)->render_view_host()->process());
127 browser()->GetTabContentsAt(3)->render_view_host()->process());
131 NavigateTabHelper(browser()->GetTabContentsAt(6), app_url);
133 browser()->GetTabContentsAt(6)->render_view_host()->process());
136 browser()->GetTabContentsAt(6)->render_view_host(), L"",
168 browser()->NewTab();
169 ui_test_utils::NavigateToURL(browser(), base_url.Resolve("path1/empty.html"));
170 browser()->NewTab();
173 browser(), base_url.Resolve("path1/redirect.html"), 2);
177 ASSERT_EQ(3, browser()->tab_count());
179 browser()->GetTabContentsAt(2)->controller().
181 RenderViewHost* host = browser()->GetTabContentsAt(1)->render_view_host();
183 browser()->GetTabContentsAt(2)->render_view_host()->process());