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

Side by Side Diff: chrome/browser/ssl/chrome_ssl_host_state_decisions_factory.h

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated with experimental groups Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DECISIONS_FACTORY_H_
6 #define CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DECISIONS_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "base/prefs/pref_service.h"
10 #include "base/values.h"
11 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
12
13 class ChromeSSLHostStateDecisions;
14 class Profile;
15
16 // Singleton that associates all ChromeSSLHostStateDecisions with Profiles.
17 class ChromeSSLHostStateDecisionsFactory
18 : public BrowserContextKeyedServiceFactory {
19 public:
20 static ChromeSSLHostStateDecisions* GetForProfile(Profile* profile);
21
22 static ChromeSSLHostStateDecisionsFactory* GetInstance();
23
24 private:
25 friend struct DefaultSingletonTraits<ChromeSSLHostStateDecisionsFactory>;
26
27 ChromeSSLHostStateDecisionsFactory();
28 virtual ~ChromeSSLHostStateDecisionsFactory();
29
30 // BrowserContextKeyedBaseFactor methods:
Ryan Sleevi 2014/07/31 00:31:28 1) Factor -> Factory? 2) These should all be prote
jww 2014/07/31 05:57:00 Done.
willchan no longer on Chromium 2014/07/31 14:41:55 In answer to your question about reducing visibili
31 virtual KeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* profile) const OVERRIDE;
33 virtual void RegisterProfilePrefs(
34 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
35 virtual content::BrowserContext* GetBrowserContextToUse(
36 content::BrowserContext* context) const OVERRIDE;
37
38 DISALLOW_COPY_AND_ASSIGN(ChromeSSLHostStateDecisionsFactory);
39 };
40
41 #endif // CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DECISIONS_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698