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

Side by Side Diff: ios/chrome/app/spotlight/bookmarks_spotlight_manager.h

Issue 2704193002: [ObjC ARC] Converts ios/chrome/app/spotlight:spotlight to ARC. (Closed)
Patch Set: s/unsafe/weak Created 3 years, 10 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 #ifndef IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_ 5 #ifndef IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_
6 #define IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_ 6 #define IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_
7 7
8 #import "ios/chrome/app/spotlight/base_spotlight_manager.h" 8 #import "ios/chrome/app/spotlight/base_spotlight_manager.h"
9 9
10 namespace bookmarks { 10 namespace bookmarks {
(...skipping 11 matching lines...) Expand all
22 @protocol BookmarkUpdatedDelegate 22 @protocol BookmarkUpdatedDelegate
23 23
24 // Called when a bookmark is updated. 24 // Called when a bookmark is updated.
25 - (void)bookmarkUpdated; 25 - (void)bookmarkUpdated;
26 26
27 @end 27 @end
28 28
29 @interface BookmarksSpotlightManager : BaseSpotlightManager 29 @interface BookmarksSpotlightManager : BaseSpotlightManager
30 30
31 // The delegate notified when a bookmark is updated. 31 // The delegate notified when a bookmark is updated.
32 @property(nonatomic, assign) id<BookmarkUpdatedDelegate> delegate; 32 @property(nonatomic, weak) id<BookmarkUpdatedDelegate> delegate;
33 33
34 + (BookmarksSpotlightManager*)bookmarksSpotlightManagerWithBrowserState: 34 + (BookmarksSpotlightManager*)bookmarksSpotlightManagerWithBrowserState:
35 (ios::ChromeBrowserState*)browserState; 35 (ios::ChromeBrowserState*)browserState;
36 36
37 // Checks the date of the latest global indexation and reindex all bookmarks if 37 // Checks the date of the latest global indexation and reindex all bookmarks if
38 // needed. 38 // needed.
39 - (void)reindexBookmarksIfNeeded; 39 - (void)reindexBookmarksIfNeeded;
40 40
41 // Methods below here are for testing use only. 41 // Methods below here are for testing use only.
42 42
43 - (instancetype) 43 - (instancetype)
44 initWithLargeIconService:(favicon::LargeIconService*)largeIconService 44 initWithLargeIconService:(favicon::LargeIconService*)largeIconService
45 bookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel; 45 bookmarkModel:(bookmarks::BookmarkModel*)bookmarkModel;
46 46
47 // Recursively adds node ancestors titles to keywords. Permanent nodes are 47 // Recursively adds node ancestors titles to keywords. Permanent nodes are
48 // ignored. 48 // ignored.
49 - (void)getParentKeywordsForNode:(const bookmarks::BookmarkNode*)node 49 - (void)getParentKeywordsForNode:(const bookmarks::BookmarkNode*)node
50 inArray:(NSMutableArray*)keywords; 50 inArray:(NSMutableArray*)keywords;
51 51
52 // Adds keywords to |item|. 52 // Adds keywords to |item|.
53 - (void)addKeywords:(NSArray*)keywords toSearchableItem:(CSSearchableItem*)item; 53 - (void)addKeywords:(NSArray*)keywords toSearchableItem:(CSSearchableItem*)item;
54 54
55 @end 55 @end
56 56
57 #endif // IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_ 57 #endif // IOS_CHROME_APP_SPOTLIGHT_BOOKMARKS_SPOTLIGHT_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/chrome/app/spotlight/base_spotlight_manager.mm ('k') | ios/chrome/app/spotlight/bookmarks_spotlight_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698