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

Unified Diff: chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: Move to /extensions, add constants file, git cl format 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
Index: chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h
diff --git a/chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h b/chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..baa0a8913226e49422e2f53da8b17472c7d25413
--- /dev/null
+++ b/chrome/renderer/browser_plugin/chrome_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 CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
+#define CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
+
+#include "content/public/renderer/browser_plugin_delegate.h"
+
+#include "content/public/renderer/render_frame_observer.h"
+#include "ipc/ipc_listener.h"
+
+class ChromeBrowserPluginDelegate : public content::BrowserPluginDelegate,
Fady Samuel 2014/09/02 21:53:25 Perhaps add a TODO here to move this to the extens
lazyboy 2014/09/02 22:03:19 Done.
+ public content::RenderFrameObserver {
+ public:
+ ChromeBrowserPluginDelegate(content::RenderFrame* render_frame,
+ const std::string& mime_type);
+ virtual ~ChromeBrowserPluginDelegate();
+
+ // BrowserPluginDelegate implementation.
+ virtual void SetElementInstanceID(int element_instance_id) OVERRIDE;
+ virtual void DidFinishLoading() OVERRIDE;
+ virtual void DidReceiveData(const char* data, int data_length) OVERRIDE;
+
+ // RenderFrameObserver override.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ void OnCreateMimeHandlerViewGuestACK(int browser_plugin_delegate);
+
+ const std::string mime_type_;
+ int element_instance_id_;
+ std::string html_string_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginDelegate);
+};
+
+#endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698