summaryrefslogtreecommitdiffstats
path: root/content/public/plugin/content_plugin_client.h
blob: f68c3ad56f6d36bc8bc581f6c277a2976a8cbd2b (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
// Copyright (c) 2012 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 CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
#define CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_

#include "base/strings/string16.h"
#include "content/public/common/content_client.h"

namespace content {

// Embedder API for participating in plugin logic.
class CONTENT_EXPORT ContentPluginClient {
 public:
  virtual ~ContentPluginClient() {}

  // Called to perform any per-process initialization necessary before
  // the sandbox is initialized for the plugin process.
  virtual void PreSandboxInitialization() {}

  // Notifies that a plugin process has started.
  virtual void PluginProcessStarted(const base::string16& plugin_name) {}
};

}  // namespace content

#endif  // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_