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

Side by Side Diff: chrome/plugin/npobject_stub.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/npobject_proxy.cc ('k') | chrome/plugin/npobject_stub.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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // A class that receives IPC messages from an NPObjectProxy and calls the real 5 // A class that receives IPC messages from an NPObjectProxy and calls the real
6 // NPObject. 6 // NPObject.
7 7
8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_ 8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_
9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_ 9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_
10 #pragma once 10 #pragma once
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // window script object on destruction to avoid leaks. 46 // window script object on destruction to avoid leaks.
47 void OnPluginDestroyed(); 47 void OnPluginDestroyed();
48 48
49 // NPObjectBase implementation. 49 // NPObjectBase implementation.
50 virtual NPObject* GetUnderlyingNPObject(); 50 virtual NPObject* GetUnderlyingNPObject();
51 51
52 virtual IPC::Channel::Listener* GetChannelListener(); 52 virtual IPC::Channel::Listener* GetChannelListener();
53 53
54 private: 54 private:
55 // IPC::Channel::Listener implementation: 55 // IPC::Channel::Listener implementation:
56 virtual void OnMessageReceived(const IPC::Message& message); 56 virtual bool OnMessageReceived(const IPC::Message& message);
57 virtual void OnChannelError(); 57 virtual void OnChannelError();
58 58
59 // message handlers 59 // message handlers
60 void OnRelease(IPC::Message* reply_msg); 60 void OnRelease(IPC::Message* reply_msg);
61 void OnHasMethod(const NPIdentifier_Param& name, 61 void OnHasMethod(const NPIdentifier_Param& name,
62 bool* result); 62 bool* result);
63 void OnInvoke(bool is_default, 63 void OnInvoke(bool is_default,
64 const NPIdentifier_Param& method, 64 const NPIdentifier_Param& method,
65 const std::vector<NPVariant_Param>& args, 65 const std::vector<NPVariant_Param>& args,
66 IPC::Message* reply_msg); 66 IPC::Message* reply_msg);
(...skipping 19 matching lines...) Expand all
86 NPObject* npobject_; 86 NPObject* npobject_;
87 scoped_refptr<PluginChannelBase> channel_; 87 scoped_refptr<PluginChannelBase> channel_;
88 int route_id_; 88 int route_id_;
89 gfx::NativeViewId containing_window_; 89 gfx::NativeViewId containing_window_;
90 90
91 // The url of the main frame hosting the plugin. 91 // The url of the main frame hosting the plugin.
92 GURL page_url_; 92 GURL page_url_;
93 }; 93 };
94 94
95 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ 95 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_
OLDNEW
« no previous file with comments | « chrome/plugin/npobject_proxy.cc ('k') | chrome/plugin/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698