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

Side by Side Diff: ios/chrome/browser/reading_list/reading_list_download_service.h

Issue 2770723004: Remove all ReadingList entries on managed account signout. (Closed)
Patch Set: 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 IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_ 5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_
6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_ 6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/keyed_service/core/keyed_service.h" 9 #include "components/keyed_service/core/keyed_service.h"
10 #include "components/reading_list/ios/reading_list_model_observer.h" 10 #include "components/reading_list/ios/reading_list_model_observer.h"
(...skipping 26 matching lines...) Expand all
37 base::FilePath chrome_profile_path, 37 base::FilePath chrome_profile_path,
38 net::URLRequestContextGetter* url_request_context_getter, 38 net::URLRequestContextGetter* url_request_context_getter,
39 std::unique_ptr<dom_distiller::DistillerFactory> distiller_factory, 39 std::unique_ptr<dom_distiller::DistillerFactory> distiller_factory,
40 std::unique_ptr<reading_list::ReadingListDistillerPageFactory> 40 std::unique_ptr<reading_list::ReadingListDistillerPageFactory>
41 distiller_page_factory); 41 distiller_page_factory);
42 ~ReadingListDownloadService() override; 42 ~ReadingListDownloadService() override;
43 43
44 // Initializes the reading list download service. 44 // Initializes the reading list download service.
45 void Initialize(); 45 void Initialize();
46 46
47 // Clear the current download queue.
48 void Clear();
49
47 // The root folder containing all the offline files. 50 // The root folder containing all the offline files.
48 virtual base::FilePath OfflineRoot() const; 51 virtual base::FilePath OfflineRoot() const;
49 52
50 // KeyedService implementation. 53 // KeyedService implementation.
51 void Shutdown() override; 54 void Shutdown() override;
52 55
53 // ReadingListModelObserver implementation 56 // ReadingListModelObserver implementation
54 void ReadingListModelLoaded(const ReadingListModel* model) override; 57 void ReadingListModelLoaded(const ReadingListModel* model) override;
55 void ReadingListWillRemoveEntry(const ReadingListModel* model, 58 void ReadingListWillRemoveEntry(const ReadingListModel* model,
56 const GURL& url) override; 59 const GURL& url) override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 std::unique_ptr<reading_list::ReadingListDistillerPageFactory> 112 std::unique_ptr<reading_list::ReadingListDistillerPageFactory>
110 distiller_page_factory_; 113 distiller_page_factory_;
111 std::unique_ptr<dom_distiller::DistillerFactory> distiller_factory_; 114 std::unique_ptr<dom_distiller::DistillerFactory> distiller_factory_;
112 115
113 base::WeakPtrFactory<ReadingListDownloadService> weak_ptr_factory_; 116 base::WeakPtrFactory<ReadingListDownloadService> weak_ptr_factory_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(ReadingListDownloadService); 118 DISALLOW_COPY_AND_ASSIGN(ReadingListDownloadService);
116 }; 119 };
117 120
118 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_ 121 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DOWNLOAD_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698