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

Side by Side Diff: components/offline_pages/downloads/download_notifying_observer.h

Issue 2537373004: [OfflinePages] Call NotifyInterrupted for pending requests (Closed)
Patch Set: 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_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 30 matching lines...) Expand all
41 41
42 private: 42 private:
43 friend class DownloadNotifyingObserverTest; 43 friend class DownloadNotifyingObserverTest;
44 44
45 DownloadNotifyingObserver( 45 DownloadNotifyingObserver(
46 std::unique_ptr<OfflinePageDownloadNotifier> notifier, 46 std::unique_ptr<OfflinePageDownloadNotifier> notifier,
47 ClientPolicyController* policy_controller); 47 ClientPolicyController* policy_controller);
48 48
49 bool IsVisibleInUI(const ClientId& id); 49 bool IsVisibleInUI(const ClientId& id);
50 50
51 void NotifyRequestStateChange(const SavePageRequest& request);
52
51 // Used to issue notifications related to save page requests. 53 // Used to issue notifications related to save page requests.
52 std::unique_ptr<OfflinePageDownloadNotifier> notifier_; 54 std::unique_ptr<OfflinePageDownloadNotifier> notifier_;
53 // Used to determine policy-related permissions. Not owned. 55 // Used to determine policy-related permissions. Not owned.
54 ClientPolicyController* policy_controller_; 56 ClientPolicyController* policy_controller_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(DownloadNotifyingObserver); 58 DISALLOW_COPY_AND_ASSIGN(DownloadNotifyingObserver);
57 }; 59 };
58 60
59 } // namespace offline_pages 61 } // namespace offline_pages
60 62
61 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 63 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698