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

Side by Side Diff: ios/net/cookies/cookie_store_ios_client.mm

Issue 2489533003: [ObjC ARC] Converts ios/net to ARC. (Closed)
Patch Set: Created 4 years, 1 month 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/net/cookies/cookie_store_ios.mm ('k') | ios/net/cookies/system_cookie_util.mm » ('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 #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
OLDNEW
« no previous file with comments | « ios/net/cookies/cookie_store_ios.mm ('k') | ios/net/cookies/system_cookie_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698