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

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

Issue 14273043: ppapi: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 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 | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppb_message_loop_proxy.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_PPB_MESSAGE_LOOP_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_
6 #define PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ 6 #define PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const base::Closure& closure, 63 const base::Closure& closure,
64 int64 delay_ms) OVERRIDE; 64 int64 delay_ms) OVERRIDE;
65 65
66 // TLS destructor function. 66 // TLS destructor function.
67 static void ReleaseMessageLoop(void* value); 67 static void ReleaseMessageLoop(void* value);
68 68
69 // Created when we attach to the current thread, since MessageLoop assumes 69 // Created when we attach to the current thread, since MessageLoop assumes
70 // that it's created on the thread it will run on. NULL for the main thread 70 // that it's created on the thread it will run on. NULL for the main thread
71 // loop, since that's owned by somebody else. This is needed for Run and Quit. 71 // loop, since that's owned by somebody else. This is needed for Run and Quit.
72 // Any time we post tasks, we should post them using loop_proxy_. 72 // Any time we post tasks, we should post them using loop_proxy_.
73 scoped_ptr<MessageLoop> loop_; 73 scoped_ptr<base::MessageLoop> loop_;
74 scoped_refptr<base::MessageLoopProxy> loop_proxy_; 74 scoped_refptr<base::MessageLoopProxy> loop_proxy_;
75 75
76 // Number of invocations of Run currently on the stack. 76 // Number of invocations of Run currently on the stack.
77 int nested_invocations_; 77 int nested_invocations_;
78 78
79 // Set to true when the message loop is destroyed to prevent forther 79 // Set to true when the message loop is destroyed to prevent forther
80 // posting of work. 80 // posting of work.
81 bool destroyed_; 81 bool destroyed_;
82 82
83 // Set to true if all message loop invocations should exit and that the 83 // Set to true if all message loop invocations should exit and that the
(...skipping 18 matching lines...) Expand all
102 static const PPB_MessageLoop_1_0* GetInterface(); 102 static const PPB_MessageLoop_1_0* GetInterface();
103 103
104 private: 104 private:
105 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); 105 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy);
106 }; 106 };
107 107
108 } // namespace proxy 108 } // namespace proxy
109 } // namespace ppapi 109 } // namespace ppapi
110 110
111 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ 111 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppb_message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698