OLD | NEW |
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 CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ | 5 #ifndef CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ |
6 #define CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ | 6 #define CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/tuple.h" |
12 #include "chrome_frame/sync_msg_reply_dispatcher.h" | 13 #include "chrome_frame/sync_msg_reply_dispatcher.h" |
13 #include "chrome_frame/chrome_frame_automation.h" | 14 #include "chrome_frame/chrome_frame_automation.h" |
14 #include "ipc/ipc_sync_message.h" | 15 #include "ipc/ipc_sync_message.h" |
15 | 16 |
16 // Class that maintains contextual information for the create and connect | 17 // Class that maintains contextual information for the create and connect |
17 // external tab operations. | 18 // external tab operations. |
18 class CreateExternalTabContext | 19 class CreateExternalTabContext |
19 : public SyncMessageReplyDispatcher::SyncMessageCallContext { | 20 : public SyncMessageReplyDispatcher::SyncMessageCallContext { |
20 public: | 21 public: |
21 typedef Tuple4<HWND, HWND, int, int> output_type; | 22 typedef Tuple4<HWND, HWND, int, int> output_type; |
(...skipping 30 matching lines...) Expand all Loading... |
52 UnloadContext(base::WaitableEvent* unload_done, bool* should_unload); | 53 UnloadContext(base::WaitableEvent* unload_done, bool* should_unload); |
53 | 54 |
54 void Completed(bool should_unload); | 55 void Completed(bool should_unload); |
55 | 56 |
56 private: | 57 private: |
57 base::WaitableEvent* unload_done_; | 58 base::WaitableEvent* unload_done_; |
58 bool* should_unload_; | 59 bool* should_unload_; |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ | 62 #endif // CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_ |
OLD | NEW |