Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: chrome_frame/custom_sync_call_context.h

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/crash_server_init.cc ('k') | chrome_frame/custom_sync_call_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_
6 #define CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_
7
8 #include <vector>
9
10 #include "base/memory/ref_counted.h"
11 #include "base/synchronization/waitable_event.h"
12 #include "base/tuple.h"
13 #include "chrome_frame/sync_msg_reply_dispatcher.h"
14 #include "chrome_frame/chrome_frame_automation.h"
15 #include "ipc/ipc_sync_message.h"
16
17 // This class maintains context information for the BeginNavigate operations
18 // pertaining to the external tab.
19 class BeginNavigateContext
20 : public SyncMessageReplyDispatcher::SyncMessageCallContext {
21 public:
22 explicit BeginNavigateContext(ChromeFrameAutomationClient* client);
23
24 typedef Tuple1<AutomationMsg_NavigationResponseValues> output_type;
25
26 void Completed(AutomationMsg_NavigationResponseValues response);
27
28 private:
29 scoped_refptr<ChromeFrameAutomationClient> client_;
30 };
31
32 // Class that maintains contextual information for the unload operation, i.e.
33 // when the user attempts to navigate away from a page rendered in ChromeFrame.
34 class UnloadContext
35 : public SyncMessageReplyDispatcher::SyncMessageCallContext {
36 public:
37 typedef Tuple1<bool> output_type;
38 UnloadContext(base::WaitableEvent* unload_done, bool* should_unload);
39
40 void Completed(bool should_unload);
41
42 private:
43 base::WaitableEvent* unload_done_;
44 bool* should_unload_;
45 };
46
47 #endif // CHROME_FRAME_CUSTOM_SYNC_CALL_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome_frame/crash_server_init.cc ('k') | chrome_frame/custom_sync_call_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698