Lines Matching refs:session
26 #include "chrome/test/chromedriver/session.h"
58 scoped_ptr<Session> session(new Session(new_id));
62 Status(kUnknownError, "failed to start a thread for the new session"),
69 FROM_HERE, base::Bind(&SetThreadLocalSession, base::Passed(&session)));
139 Session* session = GetThreadLocalSession();
140 if (!session) {
155 Status status = command.Run(session, *params, &value);
157 if (status.IsError() && session->chrome) {
158 if (!session->quit && session->chrome->HasCrashedWebView()) {
159 session->quit = true;
160 std::string message("session deleted because of page crash");
161 if (!session->detach) {
162 Status quit_status = session->chrome->Quit();
171 Status status_tmp = session->chrome->GetWebViewIds(&web_view_ids);
177 session->window) == web_view_ids.end()) {
182 const BrowserInfo* browser_info = session->chrome->GetBrowserInfo();
183 status.AddDetails("Session info: " + browser_info->browser_name + "=" +
199 if (status.IsOk() && session->auto_reporting_enabled) {
200 std::string message = session->GetFirstBrowserError();
207 base::Bind(callback_on_cmd, status, base::Passed(&value), session->id));
209 if (session->quit) {
210 SetThreadLocalSession(scoped_ptr<Session>());
211 delete session;
249 SetThreadLocalSession(make_scoped_ptr(new Session(id)));