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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
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 #ifndef PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_
6 #define PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_ 6 #define PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ipc/ipc_channel_proxy.h" 10 #include "ipc/ipc_channel_proxy.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 13
14 namespace pp { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 // Listens for messages on the I/O thread of the plugin and handles some of 17 // Listens for messages on the I/O thread of the plugin and handles some of
18 // them to avoid needing to block on the plugin. 18 // them to avoid needing to block on the plugin.
19 // 19 //
20 // There is one instance of this class for each renderer channel (same as for 20 // There is one instance of this class for each renderer channel (same as for
21 // the PluginDispatchers). 21 // the PluginDispatchers).
22 class PluginMessageFilter : public IPC::ChannelProxy::MessageFilter, 22 class PluginMessageFilter : public IPC::ChannelProxy::MessageFilter,
23 public IPC::Message::Sender { 23 public IPC::Message::Sender {
24 public: 24 public:
(...skipping 19 matching lines...) Expand all
44 // used to make sure that new instance IDs are unique. This is a non-owning 44 // used to make sure that new instance IDs are unique. This is a non-owning
45 // pointer, it will be managed by the later that creates this class. 45 // pointer, it will be managed by the later that creates this class.
46 std::set<PP_Instance>* seen_instance_ids_; 46 std::set<PP_Instance>* seen_instance_ids_;
47 47
48 // The IPC channel to the renderer. May be NULL if we're not currently 48 // The IPC channel to the renderer. May be NULL if we're not currently
49 // attached as a filter. 49 // attached as a filter.
50 IPC::Channel* channel_; 50 IPC::Channel* channel_;
51 }; 51 };
52 52
53 } // namespace proxy 53 } // namespace proxy
54 } // namespace pp 54 } // namespace ppapi
55 55
56 #endif // PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_ 56 #endif // PPAPI_PROXY_PLUGIN_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698