OLD | NEW |
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 #include "ios/net/cookies/cookie_store_ios_client.h" | 5 #include "ios/net/cookies/cookie_store_ios_client.h" |
6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
7 namespace { | 11 namespace { |
8 // The CookieStoreIOSClient. | 12 // The CookieStoreIOSClient. |
9 net::CookieStoreIOSClient* g_client; | 13 net::CookieStoreIOSClient* g_client; |
10 } // namespace | 14 } // namespace |
11 | 15 |
12 namespace net { | 16 namespace net { |
13 | 17 |
14 void SetCookieStoreIOSClient(CookieStoreIOSClient* client) { | 18 void SetCookieStoreIOSClient(CookieStoreIOSClient* client) { |
15 g_client = client; | 19 g_client = client; |
16 } | 20 } |
17 | 21 |
18 CookieStoreIOSClient* GetCookieStoreIOSClient() { | 22 CookieStoreIOSClient* GetCookieStoreIOSClient() { |
19 return g_client; | 23 return g_client; |
20 } | 24 } |
21 | 25 |
22 CookieStoreIOSClient::CookieStoreIOSClient() {} | 26 CookieStoreIOSClient::CookieStoreIOSClient() {} |
23 | 27 |
24 CookieStoreIOSClient::~CookieStoreIOSClient() {} | 28 CookieStoreIOSClient::~CookieStoreIOSClient() {} |
25 | 29 |
26 void CookieStoreIOSClient::WillChangeCookieStorage() const {} | 30 void CookieStoreIOSClient::WillChangeCookieStorage() const {} |
27 | 31 |
28 void CookieStoreIOSClient::DidChangeCookieStorage() const {} | 32 void CookieStoreIOSClient::DidChangeCookieStorage() const {} |
29 | 33 |
30 scoped_refptr<base::SequencedTaskRunner> | 34 scoped_refptr<base::SequencedTaskRunner> |
31 CookieStoreIOSClient::GetTaskRunner() const { | 35 CookieStoreIOSClient::GetTaskRunner() const { |
32 return scoped_refptr<base::SequencedTaskRunner>(); | 36 return scoped_refptr<base::SequencedTaskRunner>(); |
33 } | 37 } |
34 | 38 |
35 } // namespace net | 39 } // namespace net |
OLD | NEW |