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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.h

Issue 6901146: Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. This allows us to remov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/plugin/plugin_thread.cc ('k') | content/ppapi_plugin/ppapi_thread.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) 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 CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_native_library.h" 10 #include "base/memory/scoped_native_library.h"
(...skipping 15 matching lines...) Expand all
26 public pp::proxy::Dispatcher::Delegate { 26 public pp::proxy::Dispatcher::Delegate {
27 public: 27 public:
28 explicit PpapiThread(bool is_broker); 28 explicit PpapiThread(bool is_broker);
29 ~PpapiThread(); 29 ~PpapiThread();
30 30
31 private: 31 private:
32 // ChildThread overrides. 32 // ChildThread overrides.
33 virtual bool OnMessageReceived(const IPC::Message& msg); 33 virtual bool OnMessageReceived(const IPC::Message& msg);
34 34
35 // Dispatcher::Delegate implementation. 35 // Dispatcher::Delegate implementation.
36 virtual MessageLoop* GetIPCMessageLoop(); 36 virtual base::MessageLoopProxy* GetIPCMessageLoop();
37 virtual base::WaitableEvent* GetShutdownEvent(); 37 virtual base::WaitableEvent* GetShutdownEvent();
38 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet(); 38 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet();
39 39
40 // Message handlers. 40 // Message handlers.
41 void OnMsgLoadPlugin(const FilePath& path); 41 void OnMsgLoadPlugin(const FilePath& path);
42 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, 42 void OnMsgCreateChannel(base::ProcessHandle host_process_handle,
43 int renderer_id); 43 int renderer_id);
44 44
45 // Sets up the channel to the given renderer. On success, returns true and 45 // Sets up the channel to the given renderer. On success, returns true and
46 // fills the given ChannelHandle with the information from the new channel. 46 // fills the given ChannelHandle with the information from the new channel.
(...skipping 20 matching lines...) Expand all
67 // and pass it around as necessary. 67 // and pass it around as necessary.
68 PP_Module local_pp_module_; 68 PP_Module local_pp_module_;
69 69
70 // See Dispatcher::Delegate::GetGloballySeenInstanceIDSet. 70 // See Dispatcher::Delegate::GetGloballySeenInstanceIDSet.
71 std::set<PP_Instance> globally_seen_instance_ids_; 71 std::set<PP_Instance> globally_seen_instance_ids_;
72 72
73 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); 73 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
74 }; 74 };
75 75
76 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 76 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698