OLD | NEW |
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 #include "chrome/renderer/cookie_message_filter.h" | 5 #include "content/renderer/cookie_message_filter.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 | 8 |
9 CookieMessageFilter::CookieMessageFilter() | 9 CookieMessageFilter::CookieMessageFilter() |
10 : event_(true, false) { | 10 : event_(true, false) { |
11 } | 11 } |
12 | 12 |
13 bool CookieMessageFilter::OnMessageReceived(const IPC::Message& message) { | 13 bool CookieMessageFilter::OnMessageReceived(const IPC::Message& message) { |
14 if (message.type() == ViewMsg_SignalCookiePromptEvent::ID) { | 14 if (message.type() == ViewMsg_SignalCookiePromptEvent::ID) { |
15 event_.Signal(); | 15 event_.Signal(); |
16 return true; | 16 return true; |
17 } | 17 } |
18 return false; | 18 return false; |
19 } | 19 } |
OLD | NEW |