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

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

Issue 1092033006: [Mac/Cleanup] Trim down Foundation.h and ApplicationServices.h includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include -> import Created 5 years, 7 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
« no previous file with comments | « ios/web/navigation/navigation_item_impl.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/mac/scoped_nsobject.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 10
11 @class NSNotification;
12
11 namespace web { 13 namespace web {
12 14
13 // CookieNotificationBridge listens to 15 // CookieNotificationBridge listens to
14 // NSHTTPCookieManagerCookiesChangedNotification on the main thread and re-sends 16 // NSHTTPCookieManagerCookiesChangedNotification on the main thread and re-sends
15 // it to the cookie store on the IO thread. 17 // it to the cookie store on the IO thread.
16 class CookieNotificationBridge { 18 class CookieNotificationBridge {
17 public: 19 public:
18 CookieNotificationBridge(); 20 CookieNotificationBridge();
19 ~CookieNotificationBridge(); 21 ~CookieNotificationBridge();
20 22
21 private: 23 private:
22 void OnNotificationReceived(NSNotification* notification); 24 void OnNotificationReceived(NSNotification* notification);
23 base::scoped_nsprotocol<id> observer_; 25 base::scoped_nsprotocol<id> observer_;
24 base::ThreadChecker thread_checker_; 26 base::ThreadChecker thread_checker_;
25 27
26 DISALLOW_COPY_AND_ASSIGN(CookieNotificationBridge); 28 DISALLOW_COPY_AND_ASSIGN(CookieNotificationBridge);
27 }; 29 };
28 30
29 } // namespace web 31 } // namespace web
30 32
31 #endif // IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_ 33 #endif // IOS_WEB_NET_COOKIE_NOTIFICATION_BRIDGE_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_item_impl.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698