| Index: chrome/browser/android/offline_pages/background_loader_offliner.h
|
| diff --git a/chrome/browser/android/offline_pages/background_loader_offliner.h b/chrome/browser/android/offline_pages/background_loader_offliner.h
|
| index 25378b73e41864d594e793efe253f50f4c63f74d..a09d611b19f145cddb1f969496dcb2a908ac2f34 100644
|
| --- a/chrome/browser/android/offline_pages/background_loader_offliner.h
|
| +++ b/chrome/browser/android/offline_pages/background_loader_offliner.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/android/application_status_listener.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "base/values.h"
|
| #include "components/offline_pages/content/background_loader/background_loader_contents.h"
|
| #include "components/offline_pages/core/background/offliner.h"
|
| #include "components/offline_pages/core/offline_page_types.h"
|
| @@ -79,6 +80,12 @@ class BackgroundLoaderOffliner : public Offliner,
|
| void HandleApplicationStateChangeCancel(const SavePageRequest& request,
|
| int64_t offline_id);
|
|
|
| + // Called to remember at what time we started loading.
|
| + void MarkLoadStartTime();
|
| +
|
| + // Called to add a loading signal as we observe it.
|
| + void AddLoadingSignal(const char* signal_name);
|
| +
|
| std::unique_ptr<background_loader::BackgroundLoaderContents> loader_;
|
| // Not owned.
|
| content::BrowserContext* browser_context_;
|
| @@ -112,6 +119,13 @@ class BackgroundLoaderOffliner : public Offliner,
|
| // Whether the snapshot is on the last retry.
|
| bool did_snapshot_on_last_retry_;
|
|
|
| + // Time in ticks of when we start loading the page.
|
| + base::TimeTicks load_start_time_;
|
| +
|
| + // Saves loading signals.
|
| + // TODO(petewil): We will be replacing this with the new snapshot controller.
|
| + base::DictionaryValue signal_data_;
|
| +
|
| // Callback for cancel.
|
| CancelCallback cancel_callback_;
|
|
|
|
|