blob: 3f7be7a5eca59ae70c929b6c4a5848c801af4c85 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
#define IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
#include "base/macros.h"
@class NSNotification;
namespace web {
// CookieNotificationBridge listens to
// NSHTTPCookieManagerCookiesChangedNotification on the posting thread and
// re-sends it to the cookie store on the IO thread.
class CookieNotificationBridge {
public:
CookieNotificationBridge();
~CookieNotificationBridge();
private:
static void OnNotificationReceived(NSNotification* notification);
id observer_;
DISALLOW_COPY_AND_ASSIGN(CookieNotificationBridge);
};
} // namespace web
#endif // IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_