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

Side by Side Diff: content/public/browser/ssl_host_state_delegate.h

Issue 1058003004: Forget SSL error exceptions when good certs seen for regular requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Yet Another Webview Fix (should be the last, I swear) Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 net::CertStatus error, 47 net::CertStatus error,
48 bool* expired_previous_decision) = 0; 48 bool* expired_previous_decision) = 0;
49 49
50 // Records that a host has run insecure content. 50 // Records that a host has run insecure content.
51 virtual void HostRanInsecureContent(const std::string& host, int pid) = 0; 51 virtual void HostRanInsecureContent(const std::string& host, int pid) = 0;
52 52
53 // Returns whether the specified host ran insecure content. 53 // Returns whether the specified host ran insecure content.
54 virtual bool DidHostRunInsecureContent(const std::string& host, 54 virtual bool DidHostRunInsecureContent(const std::string& host,
55 int pid) const = 0; 55 int pid) const = 0;
56 56
57 // Revokes all SSL certificate error allow exceptions made by the user for
58 // |host|.
59 virtual void RevokeUserAllowExceptions(const std::string& host) = 0;
60
61 // Returns whether the user has allowed a certificate error exception for
62 // |host|. This does not mean that *all* certificate errors are allowed, just
63 // that there exists an exception. To see if a particular certificate and
64 // error combination exception is allowed, use QueryPolicy().
65 virtual bool HasAllowException(const std::string& host) const = 0;
66
57 protected: 67 protected:
58 virtual ~SSLHostStateDelegate() {} 68 virtual ~SSLHostStateDelegate() {}
59 }; 69 };
60 70
61 } // namespace content 71 } // namespace content
62 72
63 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 73 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | net/test/spawned_test_server/base_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698