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

Side by Side Diff: components/offline_pages/core/downloads/download_notifying_observer.cc

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 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/offline_pages/downloads/download_notifying_observer.h" 5 #include "components/offline_pages/core/downloads/download_notifying_observer.h"
6 6
7 #include "components/offline_pages/background/request_coordinator.h" 7 #include "components/offline_pages/core/background/request_coordinator.h"
8 #include "components/offline_pages/background/save_page_request.h" 8 #include "components/offline_pages/core/background/save_page_request.h"
9 #include "components/offline_pages/client_policy_controller.h" 9 #include "components/offline_pages/core/client_policy_controller.h"
10 #include "components/offline_pages/downloads/download_ui_adapter.h" 10 #include "components/offline_pages/core/downloads/download_ui_adapter.h"
11 #include "components/offline_pages/downloads/offline_page_download_notifier.h" 11 #include "components/offline_pages/core/downloads/offline_page_download_notifier .h"
12 12
13 namespace offline_pages { 13 namespace offline_pages {
14 namespace { 14 namespace {
15 int kUserDataKey; // Only address is used. 15 int kUserDataKey; // Only address is used.
16 } // namespace 16 } // namespace
17 17
18 DownloadNotifyingObserver::DownloadNotifyingObserver( 18 DownloadNotifyingObserver::DownloadNotifyingObserver(
19 std::unique_ptr<OfflinePageDownloadNotifier> notifier, 19 std::unique_ptr<OfflinePageDownloadNotifier> notifier,
20 ClientPolicyController* policy_controller) 20 ClientPolicyController* policy_controller)
21 : notifier_(std::move(notifier)), policy_controller_(policy_controller) {} 21 : notifier_(std::move(notifier)), policy_controller_(policy_controller) {}
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const SavePageRequest& request) { 91 const SavePageRequest& request) {
92 if (request.request_state() == SavePageRequest::RequestState::PAUSED) 92 if (request.request_state() == SavePageRequest::RequestState::PAUSED)
93 notifier_->NotifyDownloadPaused(DownloadUIItem(request)); 93 notifier_->NotifyDownloadPaused(DownloadUIItem(request));
94 else if (request.request_state() == SavePageRequest::RequestState::AVAILABLE) 94 else if (request.request_state() == SavePageRequest::RequestState::AVAILABLE)
95 notifier_->NotifyDownloadInterrupted(DownloadUIItem(request)); 95 notifier_->NotifyDownloadInterrupted(DownloadUIItem(request));
96 else 96 else
97 notifier_->NotifyDownloadProgress(DownloadUIItem(request)); 97 notifier_->NotifyDownloadProgress(DownloadUIItem(request));
98 } 98 }
99 99
100 } // namespace offline_pages 100 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698