| 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 // Funnel of Chrome Extension Cookie Events. | 5 // Funnel of Chrome Extension Cookie Events. |
| 6 | 6 |
| 7 #ifndef CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ | 7 #ifndef CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ |
| 8 #define CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ | 8 #define CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ |
| 9 | 9 |
| 10 #include "ceee/ie/broker/cookie_api_module.h" | 10 #include "ceee/ie/broker/cookie_api_module.h" |
| 11 #include "ceee/ie/plugin/bho/events_funnel.h" | 11 #include "ceee/ie/plugin/bho/events_funnel.h" |
| 12 | 12 |
| 13 // Implements a set of methods to send cookie related events to the Broker. | 13 // Implements a set of methods to send cookie related events to the Broker. |
| 14 class CookieEventsFunnel : public EventsFunnel { | 14 class CookieEventsFunnel : public EventsFunnel { |
| 15 public: | 15 public: |
| 16 CookieEventsFunnel() : EventsFunnel(false) {} | 16 CookieEventsFunnel() {} |
| 17 | 17 |
| 18 // Sends the cookies.onChanged event to the Broker. | 18 // Sends the cookies.onChanged event to the Broker. |
| 19 // @param removed True if the cookie was removed vs. set. | 19 // @param removed True if the cookie was removed vs. set. |
| 20 // @param cookie Information about the cookie that was set or removed. | 20 // @param cookie Information about the cookie that was set or removed. |
| 21 virtual HRESULT OnChanged(bool removed, | 21 virtual HRESULT OnChanged(bool removed, |
| 22 const cookie_api::CookieInfo& cookie); | 22 const cookie_api::CookieInfo& cookie); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(CookieEventsFunnel); | 25 DISALLOW_COPY_AND_ASSIGN(CookieEventsFunnel); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ | 28 #endif // CEEE_IE_PLUGIN_BHO_COOKIE_EVENTS_FUNNEL_H_ |
| OLD | NEW |