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

Unified Diff: components/offline_pages/downloads/download_notifying_observer.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index f89a5439416d9da33394d16ccd36452a4af53b8d..0000000000000000000000000000000000000000
--- a/components/offline_pages/downloads/download_notifying_observer.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
-#define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
-
-#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
-// notifications as requests are added or updated.
-class DownloadNotifyingObserver : public RequestCoordinator::Observer,
- public base::SupportsUserData::Data {
- public:
- ~DownloadNotifyingObserver() override;
-
- static DownloadNotifyingObserver* GetFromRequestCoordinator(
- RequestCoordinator* request_coordinator);
- static void CreateAndStartObserving(
- RequestCoordinator* request_coordinator,
- std::unique_ptr<OfflinePageDownloadNotifier> notifier);
-
- // RequestCoordinator::Observer implementation:
- void OnAdded(const SavePageRequest& request) override;
- void OnChanged(const SavePageRequest& request) override;
- void OnCompleted(
- const SavePageRequest& request,
- RequestCoordinator::BackgroundSavePageResult status) override;
-
- private:
- friend class DownloadNotifyingObserverTest;
-
- DownloadNotifyingObserver(
- std::unique_ptr<OfflinePageDownloadNotifier> notifier,
- ClientPolicyController* policy_controller);
-
- bool IsVisibleInUI(const ClientId& id);
-
- void NotifyRequestStateChange(const SavePageRequest& request);
-
- // 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);
-};
-
-} // namespace offline_pages
-
-#endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
« no previous file with comments | « components/offline_pages/downloads/BUILD.gn ('k') | components/offline_pages/downloads/download_notifying_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698