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

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: update Created 4 years, 1 month 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 else 73 else
74 notifier_->NotifyDownloadFailed(DownloadUIItem(request)); 74 notifier_->NotifyDownloadFailed(DownloadUIItem(request));
75 } 75 }
76 76
77 bool DownloadNotifyingObserver::IsVisibleInUI(const ClientId& page) { 77 bool DownloadNotifyingObserver::IsVisibleInUI(const ClientId& page) {
78 return policy_controller_->IsSupportedByDownload(page.name_space) && 78 return policy_controller_->IsSupportedByDownload(page.name_space) &&
79 base::IsValidGUID(page.id); 79 base::IsValidGUID(page.id);
80 } 80 }
81 81
82 } // namespace offline_pages 82 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698