Index: components/offline_pages/core/snapshot_controller.cc |
diff --git a/components/offline_pages/snapshot_controller.cc b/components/offline_pages/core/snapshot_controller.cc |
similarity index 91% |
rename from components/offline_pages/snapshot_controller.cc |
rename to components/offline_pages/core/snapshot_controller.cc |
index 0ff9841847df60b1b38ba2e332db7c9eff627b34..aa0b4270b0231bd28701289a48a6b4c76ee9fabc 100644 |
--- a/components/offline_pages/snapshot_controller.cc |
+++ b/components/offline_pages/core/snapshot_controller.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/snapshot_controller.h" |
+#include "components/offline_pages/core/snapshot_controller.h" |
#include "base/bind.h" |
#include "base/location.h" |
@@ -29,8 +29,7 @@ SnapshotController::SnapshotController( |
: task_runner_(task_runner), |
client_(client), |
state_(State::READY), |
- delay_after_document_available_ms_( |
- kDefaultDelayAfterDocumentAvailableMs), |
+ delay_after_document_available_ms_(kDefaultDelayAfterDocumentAvailableMs), |
delay_after_document_on_load_completed_ms_( |
kDelayAfterDocumentOnLoadCompletedMs), |
weak_ptr_factory_(this) {} |
@@ -43,8 +42,7 @@ SnapshotController::SnapshotController( |
: task_runner_(task_runner), |
client_(client), |
state_(State::READY), |
- delay_after_document_available_ms_( |
- delay_after_document_available_ms), |
+ delay_after_document_available_ms_(delay_after_document_available_ms), |
delay_after_document_on_load_completed_ms_( |
delay_after_document_on_load_completed_ms), |
weak_ptr_factory_(this) {} |
@@ -74,8 +72,7 @@ void SnapshotController::DocumentAvailableInMainFrame() { |
task_runner_->PostDelayedTask( |
FROM_HERE, base::Bind(&SnapshotController::MaybeStartSnapshot, |
weak_ptr_factory_.GetWeakPtr()), |
- base::TimeDelta::FromMilliseconds( |
- delay_after_document_available_ms_)); |
+ base::TimeDelta::FromMilliseconds(delay_after_document_available_ms_)); |
} |
void SnapshotController::DocumentOnLoadCompletedInMainFrame() { |
@@ -107,5 +104,4 @@ size_t SnapshotController::GetDelayAfterDocumentOnLoadCompletedForTest() { |
return delay_after_document_on_load_completed_ms_; |
} |
- |
} // namespace offline_pages |