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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 2776933004: Revert "Track input latency while starting a ServiceWorker for a navigation hint." (Closed)
Patch Set: rebase and fix indent Created 3 years, 9 months 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: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 33fa91c06cec11cfc34868dffb866c80780b7c0d..f308459bf6b65d3466aa6bfe0b61a37845f34577 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -227,9 +227,6 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Must be called from the IO thread.
bool OriginHasForeignFetchRegistrations(const GURL& origin);
- // Must be called from the UI thread.
- bool IsRunningNavigationHintTask(int render_process_id) const;
-
private:
friend class BackgroundSyncManagerTest;
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
@@ -292,9 +289,6 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
int render_process_id,
const ResultCallback& callback,
ServiceWorkerStatusCode code);
- void DidFinishNavigationHintTaskOnUI(int render_process_id,
- const ResultCallback& callback,
- bool result);
// The core context is only for use on the IO thread.
// Can be null before/during init, during/after shutdown, and after
@@ -316,9 +310,6 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// The ResourceContext associated with this context.
ResourceContext* resource_context_;
- // Must be touched on the UI thread.
- std::map<int, int> navigation_hint_task_count_per_process_;
-
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
};

Powered by Google App Engine
This is Rietveld 408576698