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

Side by Side Diff: ios/web/crw_browsing_data_store.mm

Issue 1171203004: Correct iOS build for latest Xcode beta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/web/public/crw_browsing_data_store.h" 5 #import "ios/web/public/crw_browsing_data_store.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/ios/ios_util.h" 9 #include "base/ios/ios_util.h"
10 #import "base/ios/weak_nsobject.h" 10 #import "base/ios/weak_nsobject.h"
(...skipping 27 matching lines...) Expand all
38 38
39 @interface CRWBrowsingDataStore () 39 @interface CRWBrowsingDataStore ()
40 // Returns a serial queue on which stash and restore operations can be scheduled 40 // Returns a serial queue on which stash and restore operations can be scheduled
41 // to be run. All stash/restore operations need to be run on the same queue 41 // to be run. All stash/restore operations need to be run on the same queue
42 // hence it is shared with all CRWBrowsingDataStores. 42 // hence it is shared with all CRWBrowsingDataStores.
43 + (NSOperationQueue*)operationQueueForStashAndRestoreOperations; 43 + (NSOperationQueue*)operationQueueForStashAndRestoreOperations;
44 // Returns a concurrent queue on which remove operations can be scheduled to be 44 // Returns a concurrent queue on which remove operations can be scheduled to be
45 // run. All remove operations need to be run on the same queue hence it is 45 // run. All remove operations need to be run on the same queue hence it is
46 // shared with all CRWBrowsingDataStores. 46 // shared with all CRWBrowsingDataStores.
47 + (NSOperationQueue*)operationQueueForRemoveOperations; 47 + (NSOperationQueue*)operationQueueForRemoveOperations;
48 - (instancetype)init NS_UNAVAILABLE;
48 49
49 // The array of all browsing data managers. Must be accessed from the main 50 // The array of all browsing data managers. Must be accessed from the main
50 // thread. 51 // thread.
51 @property(nonatomic, readonly) NSArray* allBrowsingDataManagers; 52 @property(nonatomic, readonly) NSArray* allBrowsingDataManagers;
52 // Returns an array of browsing data managers for the given |browsingDataTypes|. 53 // Returns an array of browsing data managers for the given |browsingDataTypes|.
53 - (NSArray*)browsingDataManagersForBrowsingDataTypes: 54 - (NSArray*)browsingDataManagersForBrowsingDataTypes:
54 (web::BrowsingDataTypes)browsingDataTypes; 55 (web::BrowsingDataTypes)browsingDataTypes;
55 // Returns the selector that needs to be performed on the 56 // Returns the selector that needs to be performed on the
56 // CRWBrowsingDataManagers for the |operationType|. |operationType| cannot be 57 // CRWBrowsingDataManagers for the |operationType|. |operationType| cannot be
57 // |NONE|. 58 // |NONE|.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 base::scoped_nsobject<CRWCookieBrowsingDataManager> 170 base::scoped_nsobject<CRWCookieBrowsingDataManager>
170 cookieBrowsingDataManager([[CRWCookieBrowsingDataManager alloc] 171 cookieBrowsingDataManager([[CRWCookieBrowsingDataManager alloc]
171 initWithBrowserState:browserState]); 172 initWithBrowserState:browserState]);
172 _browsingDataTypeMap.reset([@{ 173 _browsingDataTypeMap.reset([@{
173 @(web::BROWSING_DATA_TYPE_COOKIES) : cookieBrowsingDataManager, 174 @(web::BROWSING_DATA_TYPE_COOKIES) : cookieBrowsingDataManager,
174 } retain]); 175 } retain]);
175 } 176 }
176 return self; 177 return self;
177 } 178 }
178 179
180 - (instancetype)init {
181 NOTREACHED();
182 return nil;
183 }
184
179 - (NSString*)description { 185 - (NSString*)description {
180 NSString* format = @"<%@: %p; hasPendingOperations = { %@ }>"; 186 NSString* format = @"<%@: %p; hasPendingOperations = { %@ }>";
181 NSString* hasPendingOperationsString = 187 NSString* hasPendingOperationsString =
182 [self hasPendingOperations] ? @"YES" : @"NO"; 188 [self hasPendingOperations] ? @"YES" : @"NO";
183 NSString* result = 189 NSString* result =
184 [NSString stringWithFormat:format, NSStringFromClass(self.class), self, 190 [NSString stringWithFormat:format, NSStringFromClass(self.class), self,
185 hasPendingOperationsString]; 191 hasPendingOperationsString];
186 return result; 192 return result;
187 } 193 }
188 194
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 DCHECK(queue); 470 DCHECK(queue);
465 471
466 if (_lastDispatchedOperation) { 472 if (_lastDispatchedOperation) {
467 [operation addDependency:_lastDispatchedOperation]; 473 [operation addDependency:_lastDispatchedOperation];
468 } 474 }
469 _lastDispatchedOperation.reset([operation retain]); 475 _lastDispatchedOperation.reset([operation retain]);
470 [queue addOperation:operation]; 476 [queue addOperation:operation];
471 } 477 }
472 478
473 @end 479 @end
OLDNEW
« no previous file with comments | « ios/web/browsing_data_managers/crw_cookie_browsing_data_manager.mm ('k') | ios/web/crw_browsing_data_store_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698