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

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

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « media/webm/webm_stream_parser.cc ('k') | remoting/client/frame_consumer.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_HOST_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_
6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 26
27 class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher { 27 class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher {
28 public: 28 public:
29 // This interface receives notifications about sync messages being sent by 29 // This interface receives notifications about sync messages being sent by
30 // the dispatcher to the plugin process. It is used to detect a hung plugin. 30 // the dispatcher to the plugin process. It is used to detect a hung plugin.
31 // 31 //
32 // Note that there can be nested sync messages, so the begin/end status 32 // Note that there can be nested sync messages, so the begin/end status
33 // actually represents a stack of blocking messages. 33 // actually represents a stack of blocking messages.
34 class SyncMessageStatusReceiver : public IPC::ChannelProxy::MessageFilter { 34 class SyncMessageStatusReceiver : public IPC::ChannelProxy::MessageFilter {
35 public: 35 public:
36 virtual ~SyncMessageStatusReceiver() {}
37
38 // Notification that a sync message is about to be sent out. 36 // Notification that a sync message is about to be sent out.
39 virtual void BeginBlockOnSyncMessage() = 0; 37 virtual void BeginBlockOnSyncMessage() = 0;
40 38
41 // Notification that a sync message reply was received and the dispatcher 39 // Notification that a sync message reply was received and the dispatcher
42 // is no longer blocked on a sync message. 40 // is no longer blocked on a sync message.
43 virtual void EndBlockOnSyncMessage() = 0; 41 virtual void EndBlockOnSyncMessage() = 0;
42
43 protected:
44 virtual ~SyncMessageStatusReceiver() {}
44 }; 45 };
45 46
46 // Constructor for the renderer side. This will take a reference to the 47 // Constructor for the renderer side. This will take a reference to the
47 // SyncMessageStatusReceiver. 48 // SyncMessageStatusReceiver.
48 // 49 //
49 // You must call InitHostWithChannel after the constructor. 50 // You must call InitHostWithChannel after the constructor.
50 HostDispatcher(PP_Module module, 51 HostDispatcher(PP_Module module,
51 PP_GetInterface_Func local_get_interface, 52 PP_GetInterface_Func local_get_interface,
52 SyncMessageStatusReceiver* sync_status); 53 SyncMessageStatusReceiver* sync_status);
53 ~HostDispatcher(); 54 ~HostDispatcher();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 private: 145 private:
145 HostDispatcher* dispatcher_; 146 HostDispatcher* dispatcher_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); 148 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference);
148 }; 149 };
149 150
150 } // namespace proxy 151 } // namespace proxy
151 } // namespace ppapi 152 } // namespace ppapi
152 153
153 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ 154 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_
OLDNEW
« no previous file with comments | « media/webm/webm_stream_parser.cc ('k') | remoting/client/frame_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698