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

Side by Side Diff: components/reading_list/ios/reading_list_model_bridge_observer.h

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: last? Created 3 years, 9 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 1
2 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Copyright 2016 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_ 6 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
7 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_ 7 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/reading_list/ios/reading_list_model_observer.h" 12 #include "components/reading_list/core/reading_list_model_observer.h"
13 13
14 // Protocol duplicating all Reading List Model Observer methods in Objective-C. 14 // Protocol duplicating all Reading List Model Observer methods in Objective-C.
15 @protocol ReadingListModelBridgeObserver<NSObject> 15 @protocol ReadingListModelBridgeObserver<NSObject>
sdefresne 2017/03/23 10:57:06 optional, follow-up: I think it should be called R
Olivier 2017/03/23 12:27:37 Thanks. I will change that in a next CL. What is t
16 16
17 @required 17 @required
18 18
19 - (void)readingListModelLoaded:(const ReadingListModel*)model; 19 - (void)readingListModelLoaded:(const ReadingListModel*)model;
20 - (void)readingListModelDidApplyChanges:(const ReadingListModel*)model; 20 - (void)readingListModelDidApplyChanges:(const ReadingListModel*)model;
21 21
22 @optional 22 @optional
23 - (void)readingListModel:(const ReadingListModel*)model 23 - (void)readingListModel:(const ReadingListModel*)model
24 willRemoveEntry:(const GURL&)url; 24 willRemoveEntry:(const GURL&)url;
25 25
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void ReadingListWillUpdateEntry(const ReadingListModel* model, 72 void ReadingListWillUpdateEntry(const ReadingListModel* model,
73 const GURL& url) override; 73 const GURL& url) override;
74 74
75 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_; 75 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_;
76 ReadingListModel* model_; // weak 76 ReadingListModel* model_; // weak
77 77
78 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge); 78 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge);
79 }; 79 };
80 80
81 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_ 81 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698