Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Side by Side Diff: chrome/browser/plugins/plugin_installer.h

Issue 15467002: Remove unused reference to DownloadManager in PluginInstaller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/version.h" 10 #include "base/version.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Opens the download URL in a new tab. 48 // Opens the download URL in a new tab.
49 void OpenDownloadURL(const GURL& plugin_url, 49 void OpenDownloadURL(const GURL& plugin_url,
50 content::WebContents* web_contents); 50 content::WebContents* web_contents);
51 51
52 // Starts downloading the download URL and opens the downloaded file 52 // Starts downloading the download URL and opens the downloaded file
53 // when finished. 53 // when finished.
54 void StartInstalling(const GURL& plugin_url, 54 void StartInstalling(const GURL& plugin_url,
55 content::WebContents* web_contents); 55 content::WebContents* web_contents);
56 56
57 private: 57 private:
58 void DownloadStarted(scoped_refptr<content::DownloadManager> dlm, 58 void DownloadStarted(content::DownloadItem* item, net::Error error);
59 content::DownloadItem* item,
60 net::Error error);
61 void DownloadError(const std::string& msg); 59 void DownloadError(const std::string& msg);
62 void DownloadCancelled(); 60 void DownloadCancelled();
63 61
64 InstallerState state_; 62 InstallerState state_;
65 ObserverList<PluginInstallerObserver> observers_; 63 ObserverList<PluginInstallerObserver> observers_;
66 ObserverList<WeakPluginInstallerObserver> weak_observers_; 64 ObserverList<WeakPluginInstallerObserver> weak_observers_;
67 65
68 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); 66 DISALLOW_COPY_AND_ASSIGN(PluginInstaller);
69 }; 67 };
70 68
71 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_ 69 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698