Chromium Code Reviews| 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/files/file_path.h" | |
| 8 #include "base/string16.h" | 9 #include "base/string16.h" |
| 9 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 // Embedder API for participating in plugin logic. | 14 // Embedder API for participating in plugin logic. |
| 14 class CONTENT_EXPORT ContentPluginClient { | 15 class CONTENT_EXPORT ContentPluginClient { |
| 15 public: | 16 public: |
| 17 enum PluginLoadStatus { | |
|
ddorwin
2013/04/08 18:04:34
Status or Result?
xhwang
2013/04/09 00:34:11
Done.
| |
| 18 LOAD_SUCCESS, | |
| 19 UNKNOWN_ERROR, | |
|
piman
2013/04/08 19:38:43
You don't use this. Remove?
xhwang
2013/04/09 00:34:11
Done.
| |
| 20 LOAD_FAILED, | |
| 21 ENTRY_POINT_MISSING, | |
| 22 INIT_FAILED, | |
| 23 LOAD_STATUS_MAX | |
|
piman
2013/04/08 19:38:43
nit: this last value I was very confused about unt
xhwang
2013/04/09 00:34:11
Done.
| |
| 24 }; | |
| 25 | |
| 16 virtual ~ContentPluginClient() {} | 26 virtual ~ContentPluginClient() {} |
| 17 | 27 |
| 18 // Called to perform any per-process initialization necessary before | 28 // Called to perform any per-process initialization necessary before |
| 19 // the sandbox is initialized for the plugin process. | 29 // the sandbox is initialized for the plugin process. |
| 20 virtual void PreSandboxInitialization() {} | 30 virtual void PreSandboxInitialization() {} |
| 21 | 31 |
| 22 // Notifies that a plugin process has started. | 32 // Notifies that a plugin process has started. |
| 23 virtual void PluginProcessStarted(const string16& plugin_name) {} | 33 virtual void PluginProcessStarted(const string16& plugin_name) {} |
| 34 | |
| 35 // Notifies that a plugin has been loaded. | |
|
ddorwin
2013/04/08 18:04:34
Could also be that a plugin load failed. I'm not s
xhwang
2013/04/09 00:34:11
Done.
| |
| 36 virtual void PluginLoaded(const base::FilePath& plugin_path, | |
| 37 PluginLoadStatus status) {} | |
| 24 }; | 38 }; |
| 25 | 39 |
| 26 } // namespace content | 40 } // namespace content |
| 27 | 41 |
| 28 #endif // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_ | 42 #endif // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_ |
| OLD | NEW |