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

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

Issue 589213003: PPAPI: Never re-enter JavaScript for PostMessage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make MessageChannel observer clean up more reliably, guarantee HungPluginFilter stays alive long en… 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 | « content/renderer/pepper/pepper_hung_plugin_filter.h ('k') | ppapi/proxy/dispatcher.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) 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_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_DISPATCHER_H_
6 #define PPAPI_PROXY_DISPATCHER_H_ 6 #define PPAPI_PROXY_DISPATCHER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/tracked_objects.h" 15 #include "base/tracked_objects.h"
16 #include "ipc/message_filter.h"
16 #include "ppapi/c/pp_instance.h" 17 #include "ppapi/c/pp_instance.h"
17 #include "ppapi/c/pp_module.h" 18 #include "ppapi/c/pp_module.h"
18 #include "ppapi/c/ppp.h" 19 #include "ppapi/c/ppp.h"
19 #include "ppapi/proxy/proxy_channel.h" 20 #include "ppapi/proxy/proxy_channel.h"
20 #include "ppapi/proxy/interface_list.h" 21 #include "ppapi/proxy/interface_list.h"
21 #include "ppapi/proxy/interface_proxy.h" 22 #include "ppapi/proxy/interface_proxy.h"
22 #include "ppapi/proxy/plugin_var_tracker.h" 23 #include "ppapi/proxy/plugin_var_tracker.h"
23 #include "ppapi/shared_impl/api_id.h" 24 #include "ppapi/shared_impl/api_id.h"
24 25
25 namespace IPC { 26 namespace IPC {
(...skipping 29 matching lines...) Expand all
55 56
56 VarSerializationRules* serialization_rules() const { 57 VarSerializationRules* serialization_rules() const {
57 return serialization_rules_.get(); 58 return serialization_rules_.get();
58 } 59 }
59 60
60 // Returns a non-owning pointer to the interface proxy for the given ID, or 61 // Returns a non-owning pointer to the interface proxy for the given ID, or
61 // NULL if the ID isn't found. This will create the proxy if it hasn't been 62 // NULL if the ID isn't found. This will create the proxy if it hasn't been
62 // created so far. 63 // created so far.
63 InterfaceProxy* GetInterfaceProxy(ApiID id); 64 InterfaceProxy* GetInterfaceProxy(ApiID id);
64 65
65 // Adds the given filter to the IO thread. Takes ownership of the pointer. 66 // Adds the given filter to the IO thread.
66 void AddIOThreadMessageFilter(IPC::MessageFilter* filter); 67 void AddIOThreadMessageFilter(scoped_refptr<IPC::MessageFilter> filter);
67 68
68 // IPC::Listener implementation. 69 // IPC::Listener implementation.
69 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 70 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
70 71
71 PP_GetInterface_Func local_get_interface() const { 72 PP_GetInterface_Func local_get_interface() const {
72 return local_get_interface_; 73 return local_get_interface_;
73 } 74 }
74 75
75 const PpapiPermissions& permissions() const { return permissions_; } 76 const PpapiPermissions& permissions() const { return permissions_; }
76 77
(...skipping 21 matching lines...) Expand all
98 99
99 PpapiPermissions permissions_; 100 PpapiPermissions permissions_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 102 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
102 }; 103 };
103 104
104 } // namespace proxy 105 } // namespace proxy
105 } // namespace ppapi 106 } // namespace ppapi
106 107
107 #endif // PPAPI_PROXY_DISPATCHER_H_ 108 #endif // PPAPI_PROXY_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_hung_plugin_filter.h ('k') | ppapi/proxy/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698