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

Unified Diff: chrome/browser/tab_contents/origins_seen_service_factory.h

Issue 1844753002: Histogram the scheme of an origin on the 1st navigation to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove now-extraneous `git cl format`-ism. Created 4 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: chrome/browser/tab_contents/origins_seen_service_factory.h
diff --git a/chrome/browser/tab_contents/origins_seen_service_factory.h b/chrome/browser/tab_contents/origins_seen_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..fe9ed9eedaf95fdf431d061a3a3a774b8f3eefdf
--- /dev/null
+++ b/chrome/browser/tab_contents/origins_seen_service_factory.h
@@ -0,0 +1,35 @@
+// 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 CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "chrome/browser/tab_contents/origins_seen_service.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+class Profile;
Avi (use Gerrit) 2016/04/14 02:43:26 remove this because...
palmer 2016/04/14 18:47:33 Done.
+class OriginsSeenService;
+
+class OriginsSeenServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static OriginsSeenService* GetForProfile(Profile* profile);
Avi (use Gerrit) 2016/04/14 02:43:26 You should make this be: static OriginsSeenServic
palmer 2016/04/14 18:47:34 Done.
+
+ static OriginsSeenServiceFactory* GetInstance();
+
+ // Used to create instances for testing.
+ static KeyedService* BuildInstanceFor(Profile* profile);
Avi (use Gerrit) 2016/04/14 02:43:26 and static KeyedService* BuildInstanceFor(content
palmer 2016/04/14 18:47:33 Done.
+
+ private:
+ friend struct base::DefaultSingletonTraits<OriginsSeenServiceFactory>;
+
+ OriginsSeenServiceFactory();
+ ~OriginsSeenServiceFactory() override;
+
+ // BrowserContextKeyedServiceFactory:
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* profile) const override;
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698