Removing uses of X11 native key events.
[chromium-blink-merge.git] / content / public / renderer / browser_plugin_delegate.h
blobe90ced2a0a6d162a10e75ae44de1271bbbf0eeab
1 // Copyright 2014 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.
5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
8 #include <string>
10 #include "content/common/content_export.h"
12 namespace content {
14 class RenderFrame;
16 // A delegate for BrowserPlugin which gets notified about the plugin load.
17 // Implementations can provide additional steps necessary to change the load
18 // behavior of the plugin.
19 class CONTENT_EXPORT BrowserPluginDelegate {
20 public:
21 BrowserPluginDelegate(RenderFrame* render_frame,
22 const std::string& mime_type) {}
23 virtual ~BrowserPluginDelegate() {}
25 // Called when plugin document has finished loading.
26 virtual void DidFinishLoading() {}
28 // Called when plugin document receives data.
29 virtual void DidReceiveData(const char* data, int data_length) {}
31 // Sets the instance ID that idenfies the plugin within current render
32 // process.
33 virtual void SetElementInstanceID(int element_instance_id) {}
36 } // namespace content
38 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_