Chromium Code Reviews| Index: content/public/renderer/browser_plugin_delegate.h |
| diff --git a/content/public/renderer/browser_plugin_delegate.h b/content/public/renderer/browser_plugin_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..51167cc84ca8dd2fdd8440c2e515221b941ebf60 |
| --- /dev/null |
| +++ b/content/public/renderer/browser_plugin_delegate.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2014 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_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
| +#define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
| + |
| +#include <string> |
| + |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +class RenderFrame; |
| + |
| +// A delegate for BrowserPlugin which gets notified about the plugin load. |
| +// Implementations can provide additional steps necessary to change the load |
| +// behavior of the plugin. |
| +class CONTENT_EXPORT BrowserPluginDelegate { |
| + public: |
| + BrowserPluginDelegate(RenderFrame* render_frame, |
| + const std::string& mime_type) {} |
| + virtual ~BrowserPluginDelegate() {} |
| + |
| + // Called when plugin document has finished loading. |
| + virtual void DidFinishLoading() {} |
|
Fady Samuel
2014/09/02 21:53:25
nit: Add empty line below.
lazyboy
2014/09/02 22:03:19
Done.
|
| + // Called when plugin document receives data. |
| + virtual void DidReceiveData(const char* data, int data_length) {} |
| + |
| + // Sets the instance ID that idenfies the plugin within current render |
| + // process. |
| + virtual void SetElementInstanceID(int element_instance_id) {} |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |