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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
6 #define CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
7
8 #include "content/public/renderer/browser_plugin_delegate.h"
9
10 #include "content/public/renderer/render_frame_observer.h"
11 #include "ipc/ipc_listener.h"
12
13 // TODO(lazyboy): This should live under /extensions.
14 class ChromeBrowserPluginDelegate : public content::BrowserPluginDelegate,
15 public content::RenderFrameObserver {
16 public:
17 ChromeBrowserPluginDelegate(content::RenderFrame* render_frame,
18 const std::string& mime_type);
19 virtual ~ChromeBrowserPluginDelegate();
20
21 // BrowserPluginDelegate implementation.
22 virtual void SetElementInstanceID(int element_instance_id) OVERRIDE;
23 virtual void DidFinishLoading() OVERRIDE;
24 virtual void DidReceiveData(const char* data, int data_length) OVERRIDE;
25
26 // RenderFrameObserver override.
27 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
28
29 private:
30 void OnCreateMimeHandlerViewGuestACK(int browser_plugin_delegate);
31
32 const std::string mime_type_;
33 int element_instance_id_;
34 std::string html_string_;
35
36 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginDelegate);
37 };
38
39 #endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698