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.
5 #include "chrome_frame/custom_sync_call_context.h"
9 BeginNavigateContext::BeginNavigateContext(ChromeFrameAutomationClient
* client
)
13 void BeginNavigateContext::Completed(
14 AutomationMsg_NavigationResponseValues response
) {
15 client_
->BeginNavigateCompleted(response
);
18 UnloadContext::UnloadContext(
19 base::WaitableEvent
* unload_done
, bool* should_unload
)
20 : should_unload_(should_unload
),
21 unload_done_(unload_done
) {
24 void UnloadContext::Completed(bool should_unload
) {
25 *should_unload_
= should_unload
;
26 unload_done_
->Signal();
27 should_unload_
= NULL
;
29 // This object will be destroyed after this. Cannot access any members
30 // on returning from this function.