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

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

Issue 7885009: Removed the dependency of PepperPluginRegistry on Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | no next file » | 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 #ifndef PPAPI_PROXY_PROXY_CHANNEL_H_ 5 #ifndef PPAPI_PROXY_PROXY_CHANNEL_H_
6 #define PPAPI_PROXY_PROXY_CHANNEL_H_ 6 #define PPAPI_PROXY_PROXY_CHANNEL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 14 matching lines...) Expand all
25 namespace proxy { 25 namespace proxy {
26 26
27 class VarSerializationRules; 27 class VarSerializationRules;
28 28
29 class PPAPI_PROXY_EXPORT ProxyChannel 29 class PPAPI_PROXY_EXPORT ProxyChannel
30 : public IPC::Channel::Listener, 30 : public IPC::Channel::Listener,
31 public IPC::Message::Sender { 31 public IPC::Message::Sender {
32 public: 32 public:
33 typedef void (*ShutdownModuleFunc)(); 33 typedef void (*ShutdownModuleFunc)();
34 34
35 class Delegate { 35 class PPAPI_PROXY_EXPORT Delegate {
36 public: 36 public:
37 virtual ~Delegate() {}
38
37 // Returns the dedicated message loop for processing IPC requests. 39 // Returns the dedicated message loop for processing IPC requests.
38 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0; 40 virtual base::MessageLoopProxy* GetIPCMessageLoop() = 0;
39 41
40 // Returns the event object that becomes signalled when the main thread's 42 // Returns the event object that becomes signalled when the main thread's
41 // message loop exits. 43 // message loop exits.
42 virtual base::WaitableEvent* GetShutdownEvent() = 0; 44 virtual base::WaitableEvent* GetShutdownEvent() = 0;
43 }; 45 };
44 46
45 virtual ~ProxyChannel(); 47 virtual ~ProxyChannel();
46 48
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // remote side has crashed. 105 // remote side has crashed.
104 scoped_ptr<IPC::SyncChannel> channel_; 106 scoped_ptr<IPC::SyncChannel> channel_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(ProxyChannel); 108 DISALLOW_COPY_AND_ASSIGN(ProxyChannel);
107 }; 109 };
108 110
109 } // namespace proxy 111 } // namespace proxy
110 } // namespace ppapi 112 } // namespace ppapi
111 113
112 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_ 114 #endif // PPAPI_PROXY_PROXY_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698