diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 15:18:04 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 15:18:04 +0000 |
commit | 7419d4b42d6be9b4b0f93c3fc4a85ca104e24821 (patch) | |
tree | 93896973bafb635a55e3595bb772356b21b405d0 /chrome_frame/chrome_frame_automation.cc | |
parent | e608d5644b2b4c76ffad9a7d443f338746256e8b (diff) | |
download | chromium_src-7419d4b42d6be9b4b0f93c3fc4a85ca104e24821.zip chromium_src-7419d4b42d6be9b4b0f93c3fc4a85ca104e24821.tar.gz chromium_src-7419d4b42d6be9b4b0f93c3fc4a85ca104e24821.tar.bz2 |
Remove extension automation support that was used only by CEEE.
BUG=none
TEST=all automated tests pass
Review URL: http://codereview.chromium.org/6756044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r-- | chrome_frame/chrome_frame_automation.cc | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index c3e101b..d3626eb 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -120,15 +120,6 @@ class ChromeFrameAutomationProxyImpl::CFMsgDispatcher case AutomationMsg_NavigateInExternalTab::ID: InvokeCallback<BeginNavigateContext>(msg, context); break; - case AutomationMsg_InstallExtension::ID: - InvokeCallback<InstallExtensionContext>(msg, context); - break; - case AutomationMsg_LoadExpandedExtension::ID: - InvokeCallback<InstallExtensionContext>(msg, context); - break; - case AutomationMsg_GetEnabledExtensions::ID: - InvokeCallback<GetEnabledExtensionsContext>(msg, context); - break; case AutomationMsg_RunUnloadHandlers::ID: InvokeCallback<UnloadContext>(msg, context); break; @@ -849,69 +840,6 @@ void ChromeFrameAutomationClient::FindInPage(const std::wstring& search_string, automation_server_->SendAsAsync(msg, NULL, this); } -void ChromeFrameAutomationClient::InstallExtension( - const FilePath& crx_path, - void* user_data) { - if (automation_server_ == NULL) { - InstallExtensionComplete(crx_path, - user_data, - AUTOMATION_MSG_EXTENSION_INSTALL_FAILED); - return; - } - - InstallExtensionContext* ctx = new InstallExtensionContext( - this, crx_path, user_data); - - IPC::SyncMessage* msg = new AutomationMsg_InstallExtension(crx_path, NULL); - - // The context will delete itself after it is called. - automation_server_->SendAsAsync(msg, ctx, this); -} - -void ChromeFrameAutomationClient::InstallExtensionComplete( - const FilePath& crx_path, - void* user_data, - AutomationMsg_ExtensionResponseValues res) { - DCHECK_EQ(base::PlatformThread::CurrentId(), ui_thread_id_); - - if (chrome_frame_delegate_) { - chrome_frame_delegate_->OnExtensionInstalled(crx_path, user_data, res); - } -} - -void ChromeFrameAutomationClient::GetEnabledExtensions(void* user_data) { - if (automation_server_ == NULL) { - GetEnabledExtensionsComplete(user_data, &std::vector<FilePath>()); - return; - } - - GetEnabledExtensionsContext* ctx = new GetEnabledExtensionsContext( - this, user_data); - - IPC::SyncMessage* msg = new AutomationMsg_GetEnabledExtensions( - ctx->extension_directories()); - - // The context will delete itself after it is called. - automation_server_->SendAsAsync(msg, ctx, this); -} - -void ChromeFrameAutomationClient::GetEnabledExtensionsComplete( - void* user_data, - std::vector<FilePath>* extension_directories) { - DCHECK_EQ(base::PlatformThread::CurrentId(), ui_thread_id_); - - if (chrome_frame_delegate_) { - chrome_frame_delegate_->OnGetEnabledExtensionsComplete( - user_data, *extension_directories); - } - - delete extension_directories; -} - -int ChromeFrameAutomationClient::GetSessionId() const { - return session_id_; -} - void ChromeFrameAutomationClient::OnChromeFrameHostMoved() { // Use a local var to avoid the small possibility of getting the tab_ // member be cleared while we try to use it. @@ -923,25 +851,6 @@ void ChromeFrameAutomationClient::OnChromeFrameHostMoved() { tab->OnHostMoved(); } -void ChromeFrameAutomationClient::LoadExpandedExtension( - const FilePath& path, - void* user_data) { - if (automation_server_ == NULL) { - InstallExtensionComplete(path, - user_data, - AUTOMATION_MSG_EXTENSION_INSTALL_FAILED); - return; - } - - InstallExtensionContext* ctx = new InstallExtensionContext( - this, path, user_data); - - IPC::SyncMessage* msg = new AutomationMsg_LoadExpandedExtension(path, NULL); - - // The context will delete itself after it is called. - automation_server_->SendAsAsync(msg, ctx, this); -} - void ChromeFrameAutomationClient::CreateExternalTab() { AutomationLaunchResult launch_result = AUTOMATION_SUCCESS; DCHECK(IsWindow()); @@ -1000,19 +909,6 @@ AutomationLaunchResult ChromeFrameAutomationClient::CreateExternalTabComplete( return launch_result; } -void ChromeFrameAutomationClient::SetEnableExtensionAutomation( - const std::vector<std::string>& functions_enabled) { - if (!is_initialized()) - return; - - // We are doing initialization, so there is no need to reset extension - // automation, only to set it. Also, we want to avoid resetting extension - // automation that some other automation client has set up. Therefore only - // send the message if we are going to enable automation of some functions. - if (!functions_enabled.empty()) - tab_->SetEnableExtensionAutomation(functions_enabled); -} - // Invoked in launch background thread. void ChromeFrameAutomationClient::LaunchComplete( ChromeFrameAutomationProxy* proxy, |