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

Unified Diff: components/navigation_metrics/origins_seen_service.h

Issue 2823233003: Deprecate Once-Per-Origin Navigation histograms (Closed)
Patch Set: Remove deleted .h from .mm Created 3 years, 8 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: components/navigation_metrics/origins_seen_service.h
diff --git a/components/navigation_metrics/origins_seen_service.h b/components/navigation_metrics/origins_seen_service.h
deleted file mode 100644
index 94e43305a1ddd0fb72fe2a3db841980d9fff0cb5..0000000000000000000000000000000000000000
--- a/components/navigation_metrics/origins_seen_service.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_NAVIGATION_METRICS_ORIGINS_SEEN_SERVICE_H_
-#define COMPONENTS_NAVIGATION_METRICS_ORIGINS_SEEN_SERVICE_H_
-
-#include "base/containers/mru_cache.h"
-#include "components/keyed_service/core/keyed_service.h"
-#include "url/origin.h"
-
-namespace navigation_metrics {
-
-class OriginsSeenService : public KeyedService {
- public:
- OriginsSeenService();
- ~OriginsSeenService() override;
-
- // Used when deciding whether or not to record
- // Navigation.SchemePerUniqueOrigin[OTR]. Inserts a copy of |origin| into the
- // set |origins_seen_|, and returns whether or not |origin| was already in the
- // set.
- bool Insert(const url::Origin& origin);
-
- private:
- // Used by |HaveAlreadySeenOrigin|. This cache is in volatile storage because
- // Off The Record Profiles also use this Service.
- base::MRUCache<url::Origin, bool> origins_seen_;
-};
-
-} // namespace navigation_metrics
-
-#endif // COMPONENTS_NAVIGATION_METRICS_ORIGINS_SEEN_SERVICE_H_
« no previous file with comments | « components/navigation_metrics/navigation_metrics_unittest.cc ('k') | components/navigation_metrics/origins_seen_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698