OLD | NEW |
(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_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ |
| 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "third_party/npapi/bindings/npapi.h" |
| 10 |
| 11 // Base class for the plugin installer. |
| 12 class PluginInstallerBase { |
| 13 public: |
| 14 PluginInstallerBase(); |
| 15 virtual ~PluginInstallerBase(); |
| 16 |
| 17 bool Initialize(void* module_handle, NPP instance, NPMIMEType mime_type, |
| 18 int16 argc, char* argn[], char* argv[]); |
| 19 |
| 20 int renderer_process_id() const { |
| 21 return renderer_process_id_; |
| 22 } |
| 23 |
| 24 int render_view_id() const { |
| 25 return render_view_id_; |
| 26 } |
| 27 |
| 28 private: |
| 29 int renderer_process_id_; |
| 30 int render_view_id_; |
| 31 }; |
| 32 |
| 33 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_ |
OLD | NEW |