| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2898 break; | 2898 break; |
| 2899 case chrome::VIEW_TYPE_EXTENSION_POPUP: | 2899 case chrome::VIEW_TYPE_EXTENSION_POPUP: |
| 2900 type = "EXTENSION_POPUP"; | 2900 type = "EXTENSION_POPUP"; |
| 2901 break; | 2901 break; |
| 2902 case chrome::VIEW_TYPE_EXTENSION_INFOBAR: | 2902 case chrome::VIEW_TYPE_EXTENSION_INFOBAR: |
| 2903 type = "EXTENSION_INFOBAR"; | 2903 type = "EXTENSION_INFOBAR"; |
| 2904 break; | 2904 break; |
| 2905 case chrome::VIEW_TYPE_EXTENSION_DIALOG: | 2905 case chrome::VIEW_TYPE_EXTENSION_DIALOG: |
| 2906 type = "EXTENSION_DIALOG"; | 2906 type = "EXTENSION_DIALOG"; |
| 2907 break; | 2907 break; |
| 2908 case chrome::VIEW_TYPE_APP_SHELL: |
| 2909 type = "APP_SHELL"; |
| 2910 break; |
| 2908 default: | 2911 default: |
| 2909 type = "unknown"; | 2912 type = "unknown"; |
| 2910 break; | 2913 break; |
| 2911 } | 2914 } |
| 2912 item->SetString("view_type", type); | 2915 item->SetString("view_type", type); |
| 2913 item->SetString("url", ex_host->GetURL().spec()); | 2916 item->SetString("url", ex_host->GetURL().spec()); |
| 2914 item->SetBoolean("loaded", ex_host->did_stop_loading()); | 2917 item->SetBoolean("loaded", ex_host->did_stop_loading()); |
| 2915 extension_views->Append(item); | 2918 extension_views->Append(item); |
| 2916 } | 2919 } |
| 2917 } | 2920 } |
| (...skipping 3752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6670 | 6673 |
| 6671 Send(reply_message_); | 6674 Send(reply_message_); |
| 6672 redirect_query_ = 0; | 6675 redirect_query_ = 0; |
| 6673 reply_message_ = NULL; | 6676 reply_message_ = NULL; |
| 6674 } | 6677 } |
| 6675 | 6678 |
| 6676 void TestingAutomationProvider::OnRemoveProvider() { | 6679 void TestingAutomationProvider::OnRemoveProvider() { |
| 6677 if (g_browser_process) | 6680 if (g_browser_process) |
| 6678 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6681 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6679 } | 6682 } |
| OLD | NEW |