Chromium Code Reviews| Index: components/offline_pages/downloads/download_notifying_observer.h |
| diff --git a/components/offline_pages/downloads/download_notifying_observer.h b/components/offline_pages/downloads/download_notifying_observer.h |
| index 44f1e1f617c4991966e645a312359920cf7fbb3f..993fe121840dacbf687118df81ca6ebcd48703b2 100644 |
| --- a/components/offline_pages/downloads/download_notifying_observer.h |
| +++ b/components/offline_pages/downloads/download_notifying_observer.h |
| @@ -7,12 +7,16 @@ |
| #include <memory> |
| +#include "base/guid.h" |
| #include "base/macros.h" |
| #include "components/offline_pages/background/request_coordinator.h" |
| +#include "components/offline_pages/client_policy_controller.h" |
| namespace offline_pages { |
| +struct ClientId; |
| struct OfflinePageDownloadNotifier; |
| +class ClientPolicyController; |
| class SavePageRequest; |
| // Class observing the save page requests and issuing corresponding user |
| @@ -39,10 +43,15 @@ class DownloadNotifyingObserver : public RequestCoordinator::Observer, |
| friend class DownloadNotifyingObserverTest; |
| explicit DownloadNotifyingObserver( |
|
fgorski
2016/10/04 18:28:50
no need for this to be marked explicit.
chili
2016/10/04 20:20:25
Done.
|
| - std::unique_ptr<OfflinePageDownloadNotifier> notifier); |
| + std::unique_ptr<OfflinePageDownloadNotifier> notifier, |
| + ClientPolicyController* policy_controller); |
| + |
| + bool IsVisibleInUI(const ClientId& id); |
| // Used to issue notifications related to save page requests. |
| std::unique_ptr<OfflinePageDownloadNotifier> notifier_; |
| + // Used to determine policy-related permissions. Not owned. |
| + ClientPolicyController* policy_controller_; |
| DISALLOW_COPY_AND_ASSIGN(DownloadNotifyingObserver); |
| }; |