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/plugins/plugin_installer.h" | 5 #include "chrome/browser/plugins/plugin_installer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "chrome/browser/download/download_service.h" | 11 #include "chrome/browser/download/download_service.h" |
12 #include "chrome/browser/download/download_service_factory.h" | 12 #include "chrome/browser/download/download_service_factory.h" |
13 #include "chrome/browser/download/download_util.h" | 13 #include "chrome/browser/download/download_util.h" |
14 #include "chrome/browser/platform_util.h" | 14 #include "chrome/browser/platform_util.h" |
15 #include "chrome/browser/plugins/plugin_installer_observer.h" | 15 #include "chrome/browser/plugins/plugin_installer_observer.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/download_item.h" | 19 #include "content/public/browser/download_item.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 DCHECK_EQ(INSTALLER_STATE_DOWNLOADING, state_); | 178 DCHECK_EQ(INSTALLER_STATE_DOWNLOADING, state_); |
179 state_ = INSTALLER_STATE_IDLE; | 179 state_ = INSTALLER_STATE_IDLE; |
180 FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadError(msg)); | 180 FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadError(msg)); |
181 } | 181 } |
182 | 182 |
183 void PluginInstaller::DownloadCancelled() { | 183 void PluginInstaller::DownloadCancelled() { |
184 DCHECK_EQ(INSTALLER_STATE_DOWNLOADING, state_); | 184 DCHECK_EQ(INSTALLER_STATE_DOWNLOADING, state_); |
185 state_ = INSTALLER_STATE_IDLE; | 185 state_ = INSTALLER_STATE_IDLE; |
186 FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadCancelled()); | 186 FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadCancelled()); |
187 } | 187 } |
OLD | NEW |