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