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

Side by Side Diff: components/reading_list/core/reading_list_model_impl.cc

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 #include "components/reading_list/ios/reading_list_model_impl.h" 5 #include "components/reading_list/core/reading_list_model_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/time/clock.h" 11 #include "base/time/clock.h"
12 #include "components/prefs/pref_service.h" 12 #include "components/prefs/pref_service.h"
13 #include "components/reading_list/ios/reading_list_model_storage.h" 13 #include "components/reading_list/core/reading_list_model_storage.h"
14 #include "components/reading_list/ios/reading_list_pref_names.h" 14 #include "components/reading_list/core/reading_list_pref_names.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 ReadingListModelImpl::ReadingListModelImpl( 17 ReadingListModelImpl::ReadingListModelImpl(
18 std::unique_ptr<ReadingListModelStorage> storage, 18 std::unique_ptr<ReadingListModelStorage> storage,
19 PrefService* pref_service, 19 PrefService* pref_service,
20 std::unique_ptr<base::Clock> clock) 20 std::unique_ptr<base::Clock> clock)
21 : entries_(base::MakeUnique<ReadingListEntries>()), 21 : entries_(base::MakeUnique<ReadingListEntries>()),
22 unread_entry_count_(0), 22 unread_entry_count_(0),
23 read_entry_count_(0), 23 read_entry_count_(0),
24 unseen_entry_count_(0), 24 unseen_entry_count_(0),
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 514
515 syncer::ModelTypeSyncBridge* ReadingListModelImpl::GetModelTypeSyncBridge() { 515 syncer::ModelTypeSyncBridge* ReadingListModelImpl::GetModelTypeSyncBridge() {
516 if (!storage_layer_) 516 if (!storage_layer_)
517 return nullptr; 517 return nullptr;
518 return storage_layer_.get(); 518 return storage_layer_.get();
519 } 519 }
520 520
521 ReadingListModelStorage* ReadingListModelImpl::StorageLayer() { 521 ReadingListModelStorage* ReadingListModelImpl::StorageLayer() {
522 return storage_layer_.get(); 522 return storage_layer_.get();
523 } 523 }
OLDNEW
« no previous file with comments | « components/reading_list/core/reading_list_model_impl.h ('k') | components/reading_list/core/reading_list_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698