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

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

Issue 8664027: Add PluginInstaller to encapsulate information about a missing plug-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PLUGIN_INSTALLER_H_
6 #define CHROME_BROWSER_PLUGIN_INSTALLER_H_
7 #pragma once
8
9 #include "base/string16.h"
10 #include "googleurl/src/gurl.h"
11
12 class PluginInstaller {
13 public:
14 PluginInstaller(const std::string& identifier,
15 const GURL& plugin_url,
16 const GURL& help_url,
17 const string16& name,
18 bool url_for_display);
19 ~PluginInstaller();
20
21 // Unique identifier for the plug-in. Should be kept in sync with the
22 // identifier in plugin_list.cc.
23 std::string identifier() { return identifier_; }
battre 2011/11/30 14:10:06 const std::string& identifier() const { return ide
Bernhard Bauer 2011/12/01 09:39:25 done (also in other places in this file).
24
25 // Human-readable name of the plug-in.
26 string16 name() { return name_; }
battre 2011/11/30 14:10:06 same here
27
28 // If |url_for_display| is false, |plugin_url| is the URL of the download page
29 // for the plug-in, which should be opened in a new tab. If it is true,
30 // |plugin_url| is the URL of the plug-in installer binary, which can be
31 // directly downloaded.
32 bool url_for_display() { return url_for_display_; }
battre 2011/11/30 14:10:06 const, also below
33 GURL plugin_url() { return plugin_url_; }
34
35 // URL to open when the user clicks on the "Problems installing?" link.
36 GURL help_url() { return help_url_; }
37
38 private:
39 std::string identifier_;
40 GURL plugin_url_;
41 GURL help_url_;
42 string16 name_;
43 bool url_for_display_;
44
45 DISALLOW_COPY_AND_ASSIGN(PluginInstaller);
46 };
47
48 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698