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

Side by Side Diff: chrome/renderer/cookie_message_filter.h

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_COOKIE_MESSAGE_FILTER_H_ 5 #ifndef CHROME_RENDERER_COOKIE_MESSAGE_FILTER_H_
6 #define CHROME_RENDERER_COOKIE_MESSAGE_FILTER_H_ 6 #define CHROME_RENDERER_COOKIE_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "ipc/ipc_channel_proxy.h" 10 #include "ipc/ipc_channel_proxy.h"
11 11
12 // This class maintains a WaitableEvent that is signaled when an IPC to query 12 // This class maintains a WaitableEvent that is signaled when an IPC to query
13 // cookies from the browser should pump events. Pumping events may be 13 // cookies from the browser should pump events. Pumping events may be
14 // necessary to avoid deadlocks if the browser blocks the cookie query on a 14 // necessary to avoid deadlocks if the browser blocks the cookie query on a
15 // user prompt. 15 // user prompt.
16 class CookieMessageFilter : public IPC::ChannelProxy::MessageFilter { 16 class CookieMessageFilter : public IPC::ChannelProxy::MessageFilter {
17 public: 17 public:
18 CookieMessageFilter(); 18 CookieMessageFilter();
19 19
20 base::WaitableEvent* pump_messages_event() { return &event_; } 20 base::WaitableEvent* pump_messages_event() { return &event_; }
21 void ResetPumpMessagesEvent() { event_.Reset(); } 21 void ResetPumpMessagesEvent() { event_.Reset(); }
22 22
23 private: 23 private:
24 // IPC::ChannelProxy::MessageFilter implementation: 24 // IPC::ChannelProxy::MessageFilter implementation:
25 virtual bool OnMessageReceived(const IPC::Message& message); 25 virtual bool OnMessageReceived(const IPC::Message& message);
26 26
27 base::WaitableEvent event_; 27 base::WaitableEvent event_;
28 }; 28 };
29 29
30 #endif // CHROME_RENDERER_COOKIE_MESSAGE_FILTER_H_ 30 #endif // CHROME_RENDERER_COOKIE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698