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

Side by Side Diff: ios/web/net/cookie_notification_bridge.h

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_ 5 #ifndef IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
6 #define IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_ 6 #define IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
7 7
8 #include "base/mac/scoped_nsobject.h" 8 #import "base/mac/scoped_nsobject.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 11
12 @class NSNotification; 12 @class NSNotification;
13 13
14 namespace web { 14 namespace web {
15 15
16 // CookieNotificationBridge listens to 16 // CookieNotificationBridge listens to
17 // NSHTTPCookieManagerCookiesChangedNotification on the main thread and re-sends 17 // NSHTTPCookieManagerCookiesChangedNotification on the main thread and re-sends
18 // it to the cookie store on the IO thread. 18 // it to the cookie store on the IO thread.
19 class CookieNotificationBridge { 19 class CookieNotificationBridge {
20 public: 20 public:
21 CookieNotificationBridge(); 21 CookieNotificationBridge();
22 ~CookieNotificationBridge(); 22 ~CookieNotificationBridge();
23 23
24 private: 24 private:
25 void OnNotificationReceived(NSNotification* notification); 25 void OnNotificationReceived(NSNotification* notification);
26 base::scoped_nsprotocol<id> observer_; 26 base::scoped_nsprotocol<id> observer_;
27 base::ThreadChecker thread_checker_; 27 base::ThreadChecker thread_checker_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(CookieNotificationBridge); 29 DISALLOW_COPY_AND_ASSIGN(CookieNotificationBridge);
30 }; 30 };
31 31
32 } // namespace web 32 } // namespace web
33 33
34 #endif // IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_ 34 #endif // IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698