Home | History | Annotate | Download | only in plugin
      1 // Copyright (c) 2012 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 CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
      6 #define CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
      7 
      8 #include "base/strings/string16.h"
      9 #include "content/public/common/content_client.h"
     10 
     11 namespace content {
     12 
     13 // Embedder API for participating in plugin logic.
     14 class CONTENT_EXPORT ContentPluginClient {
     15  public:
     16   virtual ~ContentPluginClient() {}
     17 
     18   // Called to perform any per-process initialization necessary before
     19   // the sandbox is initialized for the plugin process.
     20   virtual void PreSandboxInitialization() {}
     21 
     22   // Notifies that a plugin process has started.
     23   virtual void PluginProcessStarted(const base::string16& plugin_name) {}
     24 };
     25 
     26 }  // namespace content
     27 
     28 #endif  // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
     29