diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 19:28:47 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 19:28:47 +0000 |
commit | 15b1224dc8e1918d0aa534676e65c802617a739b (patch) | |
tree | 3c7f85eb4fe1338a824b702139cdd0d025ba1651 /ppapi/proxy/ppb_message_loop_proxy.h | |
parent | d6d971b26a2a174c4142560999c3f0ad5c33d6d9 (diff) | |
download | chromium_src-15b1224dc8e1918d0aa534676e65c802617a739b.zip chromium_src-15b1224dc8e1918d0aa534676e65c802617a739b.tar.gz chromium_src-15b1224dc8e1918d0aa534676e65c802617a739b.tar.bz2 |
Revert 119200 - Revert 119198 - First pass at implementing the MessageLoop interface. This includes a simple
example and a helper class. The current example just asserts due to thread
checks we have in there now, but this should provide a good starting point.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/9097006
TBR=brettw@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9290040
TBR=brettw@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9234068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_message_loop_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_message_loop_proxy.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_message_loop_proxy.h b/ppapi/proxy/ppb_message_loop_proxy.h new file mode 100644 index 0000000..aaf120a --- /dev/null +++ b/ppapi/proxy/ppb_message_loop_proxy.h @@ -0,0 +1,30 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ +#define PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ + +#include "base/basictypes.h" +#include "ppapi/proxy/interface_proxy.h" + +struct PPB_MessageLoop_Dev_0_1; + +namespace ppapi { +namespace proxy { + +class PPB_MessageLoop_Proxy : public InterfaceProxy { + public: + PPB_MessageLoop_Proxy(Dispatcher* dispatcher); + virtual ~PPB_MessageLoop_Proxy(); + + static const PPB_MessageLoop_Dev_0_1* GetInterface(); + + private: + DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); +}; + +} // namespace proxy +} // namespace ppapi + +#endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ |