summaryrefslogtreecommitdiffstats
path: root/chrome/default_plugin/plugin_installer_base.h
blob: 1f20a689b88eea22af84246dca2e43445e998073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_
#define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_

#include "base/basictypes.h"
#include "third_party/npapi/bindings/npapi.h"

// Base class for the plugin installer.
class PluginInstallerBase {
 public:
  PluginInstallerBase();
  virtual ~PluginInstallerBase();

  // Parses the arguments passed in to the plug-in for the IDs of the renderer
  // process and RenderView.
  void SetRoutingIds(int16 argc, char* argn[], char* argv[]);

  int renderer_process_id() const {
    return renderer_process_id_;
  }

  int render_view_id() const {
    return render_view_id_;
  }

 private:
  int renderer_process_id_;
  int render_view_id_;
};

#endif  // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALLER_BASE_H_