| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 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 | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 // MainThreadArchiveCallbackClient forwards data from one thread to | 32 // MainThreadArchiveCallbackClient forwards data from one thread to |
| 33 // another client that will run on the main thread. | 33 // another client that will run on the main thread. |
| 34 | 34 |
| 35 #ifndef O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ | 35 #ifndef O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ |
| 36 #define O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ | 36 #define O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ |
| 37 | 37 |
| 38 #include "base/basictypes.h" | 38 #include "base/basictypes.h" |
| 39 #include "base/thread.h" | 39 #include "base/threading/thread.h" |
| 40 #include "import/cross/archive_processor.h" | 40 #include "import/cross/archive_processor.h" |
| 41 #include "import/cross/memory_stream.h" | 41 #include "import/cross/memory_stream.h" |
| 42 | 42 |
| 43 namespace o3d { | 43 namespace o3d { |
| 44 | 44 |
| 45 class IMainThreadTaskPoster; | 45 class IMainThreadTaskPoster; |
| 46 class ServiceLocator; | 46 class ServiceLocator; |
| 47 | 47 |
| 48 class MainThreadArchiveCallbackClient : public ArchiveCallbackClient { | 48 class MainThreadArchiveCallbackClient : public ArchiveCallbackClient { |
| 49 public: | 49 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 76 | 76 |
| 77 IMainThreadTaskPoster* main_thread_task_poster_; | 77 IMainThreadTaskPoster* main_thread_task_poster_; |
| 78 ArchiveCallbackClient* receiver_; | 78 ArchiveCallbackClient* receiver_; |
| 79 SuccessPtr success_; | 79 SuccessPtr success_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(MainThreadArchiveCallbackClient); | 81 DISALLOW_COPY_AND_ASSIGN(MainThreadArchiveCallbackClient); |
| 82 }; | 82 }; |
| 83 } // namespace o3d | 83 } // namespace o3d |
| 84 | 84 |
| 85 #endif // O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ | 85 #endif // O3D_IMPORT_CROSS_MAIN_THREAD_ARCHIVE_CALLBACK_CLIENT_H_ |
| OLD | NEW |