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

Side by Side Diff: components/reading_list/reading_list_model.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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_READING_LIST_MODEL_H_ 5 #ifndef COMPONENTS_READING_LIST_READING_LIST_MODEL_H_
6 #define COMPONENTS_READING_LIST_READING_LIST_MODEL_H_ 6 #define COMPONENTS_READING_LIST_READING_LIST_MODEL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "components/reading_list/reading_list_entry.h" 15 #include "components/reading_list/reading_list_entry.h"
16 #include "components/reading_list/reading_list_model_observer.h" 16 #include "components/reading_list/reading_list_model_observer.h"
17 17
18 class GURL; 18 class GURL;
19 class ReadingListEntry; 19 class ReadingListEntry;
20 class ReadingListModel; 20 class ReadingListModel;
21 class ReadingListStore;
22 class ScopedReadingListBatchUpdate; 21 class ScopedReadingListBatchUpdate;
23 22
24 namespace ios {
25 class ChromeBrowserState;
26 }
27
28 namespace syncer { 23 namespace syncer {
29 class ModelTypeSyncBridge; 24 class ModelTypeSyncBridge;
30 } 25 }
31 26
32 // The reading list model contains two list of entries: one of unread urls, the 27 // The reading list model contains two list of entries: one of unread urls, the
33 // other of read ones. This object should only be accessed from one thread 28 // other of read ones. This object should only be accessed from one thread
34 // (Usually the main thread). The observers callbacks are also sent on the main 29 // (Usually the main thread). The observers callbacks are also sent on the main
35 // thread. 30 // thread.
36 class ReadingListModel : public base::NonThreadSafe { 31 class ReadingListModel : public base::NonThreadSafe {
37 public: 32 public:
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Called when model is leaving batch update mode. 147 // Called when model is leaving batch update mode.
153 virtual void LeavingBatchUpdates(); 148 virtual void LeavingBatchUpdates();
154 149
155 private: 150 private:
156 unsigned int current_batch_updates_count_; 151 unsigned int current_batch_updates_count_;
157 152
158 DISALLOW_COPY_AND_ASSIGN(ReadingListModel); 153 DISALLOW_COPY_AND_ASSIGN(ReadingListModel);
159 }; 154 };
160 155
161 #endif // COMPONENTS_READING_LIST_READING_LIST_MODEL_H_ 156 #endif // COMPONENTS_READING_LIST_READING_LIST_MODEL_H_
OLDNEW
« no previous file with comments | « components/rappor/reports.h ('k') | components/renderer_context_menu/render_view_context_menu_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698