OLD | NEW |
---|---|
(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 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.
| |
14 public content::RenderFrameObserver { | |
15 public: | |
16 ChromeBrowserPluginDelegate(content::RenderFrame* render_frame, | |
17 const std::string& mime_type); | |
18 virtual ~ChromeBrowserPluginDelegate(); | |
19 | |
20 // BrowserPluginDelegate implementation. | |
21 virtual void SetElementInstanceID(int element_instance_id) OVERRIDE; | |
22 virtual void DidFinishLoading() OVERRIDE; | |
23 virtual void DidReceiveData(const char* data, int data_length) OVERRIDE; | |
24 | |
25 // RenderFrameObserver override. | |
26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
27 | |
28 private: | |
29 void OnCreateMimeHandlerViewGuestACK(int browser_plugin_delegate); | |
30 | |
31 const std::string mime_type_; | |
32 int element_instance_id_; | |
33 std::string html_string_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginDelegate); | |
36 }; | |
37 | |
38 #endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_ | |
OLD | NEW |