OLD | NEW |
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> |
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 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |