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

Side by Side Diff: components/reading_list/core/reading_list_model_observer.h

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 5 #ifndef COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 6 #define COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "components/reading_list/ios/reading_list_entry.h" 11 #include "components/reading_list/core/reading_list_entry.h"
12 12
13 class GURL; 13 class GURL;
14 class ReadingListModel; 14 class ReadingListModel;
15 15
16 // Observer for the Reading List model. In the observer methods care should be 16 // Observer for the Reading List model. In the observer methods care should be
17 // taken to not modify the model. 17 // taken to not modify the model.
18 class ReadingListModelObserver { 18 class ReadingListModelObserver {
19 public: 19 public:
20 // Invoked when the model has finished loading. Until this method is called it 20 // Invoked when the model has finished loading. Until this method is called it
21 // is unsafe to use the model. 21 // is unsafe to use the model.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // are applied and then this method is called. 73 // are applied and then this method is called.
74 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} 74 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {}
75 75
76 protected: 76 protected:
77 ReadingListModelObserver() {} 77 ReadingListModelObserver() {}
78 virtual ~ReadingListModelObserver() {} 78 virtual ~ReadingListModelObserver() {}
79 79
80 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); 80 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver);
81 }; 81 };
82 82
83 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 83 #endif // COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/reading_list/core/reading_list_model_impl.cc ('k') | components/reading_list/core/reading_list_model_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698