Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2034)

Unified Diff: content/public/renderer/browser_plugin_delegate.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: Address comment from kenrb@ Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e90ced2a0a6d162a10e75ae44de1271bbbf0eeab
--- /dev/null
+++ b/content/public/renderer/browser_plugin_delegate.h
@@ -0,0 +1,38 @@
+// 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() {}
+
+ // 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_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698