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

Side by Side Diff: content/common/npobject_stub.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | « content/common/npobject_proxy.h ('k') | content/common/pepper_plugin_registry.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_COMMON_NPOBJECT_STUB_H_ 8 #ifndef CONTENT_COMMON_NPOBJECT_STUB_H_
9 #define CONTENT_COMMON_NPOBJECT_STUB_H_ 9 #define CONTENT_COMMON_NPOBJECT_STUB_H_
10 #pragma once 10 #pragma once
(...skipping 27 matching lines...) Expand all
38 const GURL& page_url); 38 const GURL& page_url);
39 virtual ~NPObjectStub(); 39 virtual ~NPObjectStub();
40 40
41 // Schedules tear-down of this stub. The underlying NPObject reference is 41 // Schedules tear-down of this stub. The underlying NPObject reference is
42 // released, and further invokations form the IPC channel will fail once this 42 // released, and further invokations form the IPC channel will fail once this
43 // call has returned. Deletion of the stub is deferred to the main loop, in 43 // call has returned. Deletion of the stub is deferred to the main loop, in
44 // case it is touched as the stack unwinds. 44 // case it is touched as the stack unwinds.
45 void DeleteSoon(); 45 void DeleteSoon();
46 46
47 // IPC::Message::Sender implementation: 47 // IPC::Message::Sender implementation:
48 virtual bool Send(IPC::Message* msg); 48 virtual bool Send(IPC::Message* msg) OVERRIDE;
49 49
50 // NPObjectBase implementation. 50 // NPObjectBase implementation.
51 virtual NPObject* GetUnderlyingNPObject(); 51 virtual NPObject* GetUnderlyingNPObject() OVERRIDE;
52 virtual IPC::Channel::Listener* GetChannelListener(); 52 virtual IPC::Channel::Listener* GetChannelListener() OVERRIDE;
53 53
54 private: 54 private:
55 // IPC::Channel::Listener implementation: 55 // IPC::Channel::Listener implementation:
56 virtual bool OnMessageReceived(const IPC::Message& message); 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
57 virtual void OnChannelError(); 57 virtual void OnChannelError() OVERRIDE;
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);
67 void OnHasProperty(const NPIdentifier_Param& name, 67 void OnHasProperty(const NPIdentifier_Param& name,
(...skipping 18 matching lines...) Expand all
86 NPObject* npobject_; 86 NPObject* npobject_;
87 scoped_refptr<NPChannelBase> channel_; 87 scoped_refptr<NPChannelBase> 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 // CONTENT_COMMON_NPOBJECT_STUB_H_ 95 #endif // CONTENT_COMMON_NPOBJECT_STUB_H_
OLDNEW
« no previous file with comments | « content/common/npobject_proxy.h ('k') | content/common/pepper_plugin_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698