| OLD | NEW |
| 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_ |
| OLD | NEW |