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

Unified Diff: components/offline_pages/core/background/request_coordinator.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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/core/background/request_coordinator.cc
similarity index 97%
rename from components/offline_pages/background/request_coordinator.cc
rename to components/offline_pages/core/background/request_coordinator.cc
index fdda36d470185a0db2fd20a283220ad1ab79ff84..b4ea80e5952899a67265efd125f26ee03bdd74cb 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/core/background/request_coordinator.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/offline_pages/background/request_coordinator.h"
+#include "components/offline_pages/core/background/request_coordinator.h"
#include <limits>
#include <utility>
@@ -14,13 +14,13 @@
#include "base/rand_util.h"
#include "base/sys_info.h"
#include "base/time/time.h"
-#include "components/offline_pages/background/offliner_factory.h"
-#include "components/offline_pages/background/offliner_policy.h"
-#include "components/offline_pages/background/save_page_request.h"
-#include "components/offline_pages/client_policy_controller.h"
-#include "components/offline_pages/offline_page_feature.h"
-#include "components/offline_pages/offline_page_item.h"
-#include "components/offline_pages/offline_page_model.h"
+#include "components/offline_pages/core/background/offliner_factory.h"
+#include "components/offline_pages/core/background/offliner_policy.h"
+#include "components/offline_pages/core/background/save_page_request.h"
+#include "components/offline_pages/core/client_policy_controller.h"
+#include "components/offline_pages/core/offline_page_feature.h"
+#include "components/offline_pages/core/offline_page_item.h"
+#include "components/offline_pages/core/offline_page_model.h"
namespace offline_pages {
@@ -500,8 +500,7 @@ void RequestCoordinator::ScheduleAsNeeded() {
weak_ptr_factory_.GetWeakPtr()));
}
-void RequestCoordinator::StopProcessing(
- Offliner::RequestStatus stop_status) {
+void RequestCoordinator::StopProcessing(Offliner::RequestStatus stop_status) {
processing_state_ = ProcessingWindowState::STOPPED;
StopPrerendering(stop_status);
@@ -569,7 +568,7 @@ RequestCoordinator::TryImmediateStart() {
}
if (GetConnectionType() ==
- net::NetworkChangeNotifier::ConnectionType::CONNECTION_NONE)
+ net::NetworkChangeNotifier::ConnectionType::CONNECTION_NONE)
return OfflinerImmediateStartStatus::NO_CONNECTION;
// Start processing with manufactured conservative battery conditions
@@ -842,7 +841,7 @@ void RequestCoordinator::MarkRequestCompleted(int64_t request_id) {
disabled_requests_.erase(request_id);
// Remove the request, but send out SUCCEEDED instead of removed.
- std::vector<int64_t> request_ids { request_id };
+ std::vector<int64_t> request_ids{request_id};
queue_->RemoveRequests(
request_ids,
base::Bind(&RequestCoordinator::HandleRemovedRequestsAndCallback,

Powered by Google App Engine
This is Rietveld 408576698