| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // }; | 45 // }; |
| 46 // | 46 // |
| 47 // BEGIN_PROXY_MAP(Test) | 47 // BEGIN_PROXY_MAP(Test) |
| 48 // PROXY_METHOD0(std::string, FooA) | 48 // PROXY_METHOD0(std::string, FooA) |
| 49 // PROXY_CONSTMETHOD1(std::string, FooB, arg1) | 49 // PROXY_CONSTMETHOD1(std::string, FooB, arg1) |
| 50 // PROXY_METHOD1(std::string, FooC, arg1) | 50 // PROXY_METHOD1(std::string, FooC, arg1) |
| 51 // END_PROXY() | 51 // END_PROXY() |
| 52 // | 52 // |
| 53 // The proxy can be created using TestProxy::Create(Thread*, TestInterface*). | 53 // The proxy can be created using TestProxy::Create(Thread*, TestInterface*). |
| 54 | 54 |
| 55 #ifndef TALK_APP_WEBRTC_PROXY_H_ | 55 #ifndef WEBRTC_API_PROXY_H_ |
| 56 #define TALK_APP_WEBRTC_PROXY_H_ | 56 #define WEBRTC_API_PROXY_H_ |
| 57 | 57 |
| 58 #include "webrtc/base/event.h" | 58 #include "webrtc/base/event.h" |
| 59 #include "webrtc/base/thread.h" | 59 #include "webrtc/base/thread.h" |
| 60 | 60 |
| 61 namespace webrtc { | 61 namespace webrtc { |
| 62 | 62 |
| 63 template <typename R> | 63 template <typename R> |
| 64 class ReturnType { | 64 class ReturnType { |
| 65 public: | 65 public: |
| 66 template<typename C, typename M> | 66 template<typename C, typename M> |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 private:\ | 381 private:\ |
| 382 void Release_s() {\ | 382 void Release_s() {\ |
| 383 c_ = NULL;\ | 383 c_ = NULL;\ |
| 384 }\ | 384 }\ |
| 385 mutable rtc::Thread* owner_thread_;\ | 385 mutable rtc::Thread* owner_thread_;\ |
| 386 rtc::scoped_refptr<C> c_;\ | 386 rtc::scoped_refptr<C> c_;\ |
| 387 };\ | 387 };\ |
| 388 | 388 |
| 389 } // namespace webrtc | 389 } // namespace webrtc |
| 390 | 390 |
| 391 #endif // TALK_APP_WEBRTC_PROXY_H_ | 391 #endif // WEBRTC_API_PROXY_H_ |
| OLD | NEW |