Lines Matching refs:host

234   Host* host = handler->FindHost(
237 if (host) {
238 handler->OnShimQuit(host);
250 Host* host = handler->FindHost(profile, app_window->extension_id());
251 if (host)
252 host->OnAppHide();
261 Host* host = handler->FindHost(profile, app_id);
262 if (host) {
263 handler->OnShimFocus(host,
276 Host* host = handler->FindHost(profile, app_window->extension_id());
277 if (host) {
280 host->OnAppRequestUserAttention(APP_SHIM_ATTENTION_INFORMATIONAL);
295 Host* host = handler->FindHost(profile, app_window->extension_id());
296 if (host)
297 host->OnAppRequestUserAttention(attention_type);
314 Host* host,
317 const std::string& app_id = host->GetAppId();
320 const base::FilePath& profile_path = host->GetProfilePath();
328 host->OnAppLaunchComplete(APP_SHIM_LAUNCH_PROFILE_NOT_FOUND);
335 OnProfileLoaded(host, launch_type, files, profile);
340 // Load the profile asynchronously, the host will be registered in
347 host, launch_type, files));
360 Host* host,
364 const std::string& app_id = host->GetAppId();
366 // The first host to claim this (profile, app_id) becomes the main host.
368 if (!hosts_.insert(make_pair(make_pair(profile, app_id), host)).second) {
369 OnShimFocus(host,
373 host->OnAppLaunchComplete(APP_SHIM_LAUNCH_DUPLICATE_HOST);
378 host->OnAppLaunchComplete(APP_SHIM_LAUNCH_SUCCESS);
397 host->GetProfilePath(), app_id, files));
414 // until later, so respond to the host now.
415 Host* host = FindHost(profile, app_id);
416 if (host)
417 host->OnAppLaunchComplete(APP_SHIM_LAUNCH_APP_NOT_FOUND);
425 void ExtensionAppShimHandler::OnShimClose(Host* host) {
430 if (current->second == host)
436 Host* host,
439 DCHECK(delegate_->ProfileExistsForPath(host->GetProfilePath()));
440 Profile* profile = delegate_->ProfileForPath(host->GetProfilePath());
443 delegate_->GetWindows(profile, host->GetAppId());
452 delegate_->GetAppExtension(profile, host->GetAppId());
458 host->OnAppClosed();
462 void ExtensionAppShimHandler::OnShimSetHidden(Host* host, bool hidden) {
463 DCHECK(delegate_->ProfileExistsForPath(host->GetProfilePath()));
464 Profile* profile = delegate_->ProfileForPath(host->GetProfilePath());
466 SetAppHidden(profile, host->GetAppId(), hidden);
469 void ExtensionAppShimHandler::OnShimQuit(Host* host) {
470 DCHECK(delegate_->ProfileExistsForPath(host->GetProfilePath()));
471 Profile* profile = delegate_->ProfileForPath(host->GetProfilePath());
473 const std::string& app_id = host->GetAppId();
509 Host* host = current->second;
510 host->OnAppClosed();
532 Host* host = FindHost(profile, app_id);
533 if (host) {
534 host->OnAppLaunchComplete(APP_SHIM_LAUNCH_SUCCESS);
535 OnShimFocus(host, APP_SHIM_FOCUS_NORMAL, std::vector<base::FilePath>());
544 Host* host = FindHost(profile, app_id);
545 if (host)
546 host->OnAppClosed();