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

Side by Side Diff: chrome/default_plugin/plugin_installer_base.h

Issue 8473001: Show missing plug-in infobar only if a plug-in is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
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 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ 5 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_
6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/npapi/bindings/npapi.h" 9 #include "third_party/npapi/bindings/npapi.h"
10 10
11 // Base class for the plugin installer. 11 // Base class for the plugin installer.
12 class PluginInstallerBase { 12 class PluginInstallerBase {
13 public: 13 public:
14 PluginInstallerBase(); 14 PluginInstallerBase();
15 virtual ~PluginInstallerBase(); 15 virtual ~PluginInstallerBase();
16 16
17 bool Initialize(void* module_handle, NPP instance, NPMIMEType mime_type, 17 // Parses the arguments passed in to the plug-in for the IDs of the renderer
18 int16 argc, char* argn[], char* argv[]); 18 // process and RenderView.
19 void SetRoutingIds(int16 argc, char* argn[], char* argv[]);
19 20
20 int renderer_process_id() const { 21 int renderer_process_id() const {
21 return renderer_process_id_; 22 return renderer_process_id_;
22 } 23 }
23 24
24 int render_view_id() const { 25 int render_view_id() const {
25 return render_view_id_; 26 return render_view_id_;
26 } 27 }
27 28
28 private: 29 private:
29 int renderer_process_id_; 30 int renderer_process_id_;
30 int render_view_id_; 31 int render_view_id_;
31 }; 32 };
32 33
33 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ 34 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_
OLDNEW
« no previous file with comments | « chrome/default_plugin/plugin_impl_win.cc ('k') | chrome/default_plugin/plugin_installer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698