OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome_frame/custom_sync_call_context.h" | |
6 | |
7 #include "base/bind.h" | |
8 | |
9 BeginNavigateContext::BeginNavigateContext(ChromeFrameAutomationClient* client) | |
10 : client_(client) { | |
11 } | |
12 | |
13 void BeginNavigateContext::Completed( | |
14 AutomationMsg_NavigationResponseValues response) { | |
15 client_->BeginNavigateCompleted(response); | |
16 } | |
17 | |
18 UnloadContext::UnloadContext( | |
19 base::WaitableEvent* unload_done, bool* should_unload) | |
20 : should_unload_(should_unload), | |
21 unload_done_(unload_done) { | |
22 } | |
23 | |
24 void UnloadContext::Completed(bool should_unload) { | |
25 *should_unload_ = should_unload; | |
26 unload_done_->Signal(); | |
27 should_unload_ = NULL; | |
28 unload_done_ = NULL; | |
29 // This object will be destroyed after this. Cannot access any members | |
30 // on returning from this function. | |
31 } | |
OLD | NEW |