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

Unified Diff: chrome/browser/ssl/ssl_policy_backend.h

Issue 7111013: Move most of the core SSL code from chrome to content. The UI code that's specific to Chrome (i.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/ssl/ssl_policy_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_policy_backend.h
===================================================================
--- chrome/browser/ssl/ssl_policy_backend.h (revision 87796)
+++ chrome/browser/ssl/ssl_policy_backend.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 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_SSL_SSL_POLICY_BACKEND_H_
-#define CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/string16.h"
-#include "net/base/x509_certificate.h"
-
-class NavigationController;
-class SSLHostState;
-
-class SSLPolicyBackend {
- public:
- explicit SSLPolicyBackend(NavigationController* controller);
-
- // Records that a host has run insecure content.
- void HostRanInsecureContent(const std::string& host, int pid);
-
- // Returns whether the specified host ran insecure content.
- bool DidHostRunInsecureContent(const std::string& host, int pid) const;
-
- // Records that |cert| is permitted to be used for |host| in the future.
- void DenyCertForHost(net::X509Certificate* cert, const std::string& host);
-
- // Records that |cert| is not permitted to be used for |host| in the future.
- void AllowCertForHost(net::X509Certificate* cert, const std::string& host);
-
- // Queries whether |cert| is allowed or denied for |host|.
- net::CertPolicy::Judgment QueryPolicy(
- net::X509Certificate* cert, const std::string& host);
-
- private:
- // SSL state specific for each host.
- SSLHostState* ssl_host_state_;
-
- DISALLOW_COPY_AND_ASSIGN(SSLPolicyBackend);
-};
-
-#endif // CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/ssl/ssl_policy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698