| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/automation/automation_util.h" | 5 #include "chrome/browser/automation/automation_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/extensions/extension_system.h" | 21 #include "chrome/browser/extensions/extension_system.h" |
| 22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 23 #include "chrome/browser/sessions/session_id.h" | 23 #include "chrome/browser/sessions/session_id.h" |
| 24 #include "chrome/browser/sessions/session_tab_helper.h" | 24 #include "chrome/browser/sessions/session_tab_helper.h" |
| 25 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 25 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| 26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
| 27 #include "chrome/browser/ui/browser_iterator.h" | 27 #include "chrome/browser/ui/browser_iterator.h" |
| 28 #include "chrome/browser/ui/browser_list.h" | 28 #include "chrome/browser/ui/browser_list.h" |
| 29 #include "chrome/browser/ui/host_desktop.h" | 29 #include "chrome/browser/ui/host_desktop.h" |
| 30 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 30 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 31 #include "chrome/common/extensions/extension.h" | |
| 32 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 33 #include "content/public/browser/render_process_host.h" | 32 #include "content/public/browser/render_process_host.h" |
| 34 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
| 35 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 36 #include "extensions/browser/process_manager.h" | 35 #include "extensions/browser/process_manager.h" |
| 37 #include "extensions/browser/view_type_utils.h" | 36 #include "extensions/browser/view_type_utils.h" |
| 37 #include "extensions/common/extension.h" |
| 38 #include "net/cookies/canonical_cookie.h" | 38 #include "net/cookies/canonical_cookie.h" |
| 39 #include "net/cookies/cookie_constants.h" | 39 #include "net/cookies/cookie_constants.h" |
| 40 #include "net/cookies/cookie_monster.h" | 40 #include "net/cookies/cookie_monster.h" |
| 41 #include "net/cookies/cookie_store.h" | 41 #include "net/cookies/cookie_store.h" |
| 42 #include "net/url_request/url_request_context.h" | 42 #include "net/url_request/url_request_context.h" |
| 43 #include "net/url_request/url_request_context_getter.h" | 43 #include "net/url_request/url_request_context_getter.h" |
| 44 | 44 |
| 45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
| 46 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 46 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 47 #include "chrome/browser/chromeos/login/login_display.h" | 47 #include "chrome/browser/chromeos/login/login_display.h" |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 463 |
| 464 bool SendErrorIfModalDialogActive(AutomationProvider* provider, | 464 bool SendErrorIfModalDialogActive(AutomationProvider* provider, |
| 465 IPC::Message* message) { | 465 IPC::Message* message) { |
| 466 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog(); | 466 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog(); |
| 467 if (active) | 467 if (active) |
| 468 AutomationJSONReply(provider, message).SendError("Blocked by modal dialog"); | 468 AutomationJSONReply(provider, message).SendError("Blocked by modal dialog"); |
| 469 return active; | 469 return active; |
| 470 } | 470 } |
| 471 | 471 |
| 472 } // namespace automation_util | 472 } // namespace automation_util |
| OLD | NEW |