Chromium Code Reviews| 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 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 void ReadingListWillAddEntry(const ReadingListModel* model, | 68 void ReadingListWillAddEntry(const ReadingListModel* model, |
| 69 const ReadingListEntry& entry) override; | 69 const ReadingListEntry& entry) override; |
| 70 void ReadingListDidAddEntry(const ReadingListModel* model, | 70 void ReadingListDidAddEntry(const ReadingListModel* model, |
| 71 const GURL& url, | 71 const GURL& url, |
| 72 reading_list::EntrySource source) override; | 72 reading_list::EntrySource source) override; |
| 73 void ReadingListDidApplyChanges(ReadingListModel* model) override; | 73 void ReadingListDidApplyChanges(ReadingListModel* model) override; |
| 74 void ReadingListWillUpdateEntry(const ReadingListModel* model, | 74 void ReadingListWillUpdateEntry(const ReadingListModel* model, |
| 75 const GURL& url) override; | 75 const GURL& url) override; |
| 76 | 76 |
| 77 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_; | 77 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_; |
| 78 | |
| 79 // TODO(crbug.com/729015): Refactor into strong pointer | |
|
noyau (Ping after 24h)
2017/06/02 14:25:41
not into strong pointer. It could be a weak one. I
| |
| 78 ReadingListModel* model_; // weak | 80 ReadingListModel* model_; // weak |
| 79 | 81 |
| 80 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge); | 82 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge); |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_ | 85 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_BRIDGE_OBSERVER_H_ |
| OLD | NEW |