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

Side by Side Diff: content/public/renderer/browser_plugin_delegate.h

Issue 729333002: Add PostMessage support for MimeHandlerView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | content/public/renderer/browser_plugin_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "v8/include/v8.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 class RenderFrame; 16 class RenderFrame;
16 17
17 // A delegate for BrowserPlugin which gets notified about the plugin load. 18 // A delegate for BrowserPlugin which gets notified about the plugin load.
18 // Implementations can provide additional steps necessary to change the load 19 // Implementations can provide additional steps necessary to change the load
19 // behavior of the plugin. 20 // behavior of the plugin.
20 class CONTENT_EXPORT BrowserPluginDelegate { 21 class CONTENT_EXPORT BrowserPluginDelegate {
21 public: 22 public:
22 virtual ~BrowserPluginDelegate() {} 23 virtual ~BrowserPluginDelegate() {}
23 24
24 // Called when the BrowserPlugin's geometry has been computed for the first 25 // Called when the BrowserPlugin's geometry has been computed for the first
25 // time. 26 // time.
26 virtual void Ready() {} 27 virtual void Ready() {}
27 28
28 // Called when plugin document has finished loading. 29 // Called when plugin document has finished loading.
29 virtual void DidFinishLoading() {} 30 virtual void DidFinishLoading() {}
30 31
31 // Called when plugin document receives data. 32 // Called when plugin document receives data.
32 virtual void DidReceiveData(const char* data, int data_length) {} 33 virtual void DidReceiveData(const char* data, int data_length) {}
33 34
34 // Sets the instance ID that idenfies the plugin within current render 35 // Sets the instance ID that idenfies the plugin within current render
35 // process. 36 // process.
36 virtual void SetElementInstanceID(int element_instance_id) {} 37 virtual void SetElementInstanceID(int element_instance_id) {}
37 38
38 // Called when a message is received. Returns true iff the message was 39 // Called when a message is received. Returns true iff the message was
39 // handled. 40 // handled.
40 virtual bool OnMessageReceived(const IPC::Message& message); 41 virtual bool OnMessageReceived(const IPC::Message& message);
42
43 // Return a scriptable object for the plugin.
44 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate);
jochen (gone - plz use gerrit) 2014/12/22 14:17:29 plz forward declare the v8 stuff namespace v8 { c
raymes 2014/12/22 23:41:29 Done.
41 }; 45 };
42 46
43 } // namespace content 47 } // namespace content
44 48
45 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 49 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/browser_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698