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

Side by Side Diff: ppapi/proxy/plugin_resource.h

Issue 630883002: replace OVERRIDE and FINAL with override and final in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ppapi/proxy/plugin_message_filter.h ('k') | ppapi/proxy/plugin_resource_callback.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_PLUGIN_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 // Returns true if we've previously sent a create message to the browser 39 // Returns true if we've previously sent a create message to the browser
40 // or renderer. Generally resources will use these to tell if they should 40 // or renderer. Generally resources will use these to tell if they should
41 // lazily send create messages. 41 // lazily send create messages.
42 bool sent_create_to_browser() const { return sent_create_to_browser_; } 42 bool sent_create_to_browser() const { return sent_create_to_browser_; }
43 bool sent_create_to_renderer() const { return sent_create_to_renderer_; } 43 bool sent_create_to_renderer() const { return sent_create_to_renderer_; }
44 44
45 // This handles a reply to a resource call. It works by looking up the 45 // This handles a reply to a resource call. It works by looking up the
46 // callback that was registered when CallBrowser/CallRenderer was called 46 // callback that was registered when CallBrowser/CallRenderer was called
47 // and calling it with |params| and |msg|. 47 // and calling it with |params| and |msg|.
48 virtual void OnReplyReceived(const proxy::ResourceMessageReplyParams& params, 48 virtual void OnReplyReceived(const proxy::ResourceMessageReplyParams& params,
49 const IPC::Message& msg) OVERRIDE; 49 const IPC::Message& msg) override;
50 50
51 // Resource overrides. 51 // Resource overrides.
52 // Note: Subclasses shouldn't override these methods directly. Instead, they 52 // Note: Subclasses shouldn't override these methods directly. Instead, they
53 // should implement LastPluginRefWasDeleted() or InstanceWasDeleted() to get 53 // should implement LastPluginRefWasDeleted() or InstanceWasDeleted() to get
54 // notified. 54 // notified.
55 virtual void NotifyLastPluginRefWasDeleted() OVERRIDE; 55 virtual void NotifyLastPluginRefWasDeleted() override;
56 virtual void NotifyInstanceWasDeleted() OVERRIDE; 56 virtual void NotifyInstanceWasDeleted() override;
57 57
58 58
59 // Sends a create message to the browser or renderer for the current resource. 59 // Sends a create message to the browser or renderer for the current resource.
60 void SendCreate(Destination dest, const IPC::Message& msg); 60 void SendCreate(Destination dest, const IPC::Message& msg);
61 61
62 // When the host returnes a resource to the plugin, it will create a pending 62 // When the host returnes a resource to the plugin, it will create a pending
63 // ResourceHost and send an ID back to the plugin that identifies the pending 63 // ResourceHost and send an ID back to the plugin that identifies the pending
64 // object. The plugin uses this function to connect the plugin resource with 64 // object. The plugin uses this function to connect the plugin resource with
65 // the pending host resource. See also PpapiHostMsg_AttachToPendingHost. This 65 // the pending host resource. See also PpapiHostMsg_AttachToPendingHost. This
66 // is in lieu of sending a create message. 66 // is in lieu of sending a create message.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d, e)) 280 if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d, e))
281 return result; 281 return result;
282 return PP_ERROR_FAILED; 282 return PP_ERROR_FAILED;
283 } 283 }
284 284
285 } // namespace proxy 285 } // namespace proxy
286 } // namespace ppapi 286 } // namespace ppapi
287 287
288 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ 288 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_message_filter.h ('k') | ppapi/proxy/plugin_resource_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698