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

Side by Side Diff: content/browser/ssl/ssl_host_state.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_SSL_SSL_HOST_STATE_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_
6 #define CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ 6 #define CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 12
13 #include "base/compiler_specific.h"
13 #include "base/basictypes.h" 14 #include "base/basictypes.h"
14 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "content/common/content_export.h"
15 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
16 #include "net/base/x509_certificate.h" 18 #include "net/base/x509_certificate.h"
17 19
18 // SSLHostState 20 // SSLHostState
19 // 21 //
20 // The SSLHostState encapulates the host-specific state for SSL errors. For 22 // The SSLHostState encapulates the host-specific state for SSL errors. For
21 // example, SSLHostState remembers whether the user has whitelisted a 23 // example, SSLHostState remembers whether the user has whitelisted a
22 // particular broken cert for use with particular host. We separate this state 24 // particular broken cert for use with particular host. We separate this state
23 // from the SSLManager because this state is shared across many navigation 25 // from the SSLManager because this state is shared across many navigation
24 // controllers. 26 // controllers.
25 27
26 class SSLHostState : public base::NonThreadSafe { 28 class CONTENT_EXPORT SSLHostState
29 : NON_EXPORTED_BASE(public base::NonThreadSafe) {
27 public: 30 public:
28 SSLHostState(); 31 SSLHostState();
29 ~SSLHostState(); 32 ~SSLHostState();
30 33
31 // Records that a host has run insecure content. 34 // Records that a host has run insecure content.
32 void HostRanInsecureContent(const std::string& host, int pid); 35 void HostRanInsecureContent(const std::string& host, int pid);
33 36
34 // Returns whether the specified host ran insecure content. 37 // Returns whether the specified host ran insecure content.
35 bool DidHostRunInsecureContent(const std::string& host, int pid) const; 38 bool DidHostRunInsecureContent(const std::string& host, int pid) const;
36 39
(...skipping 17 matching lines...) Expand all
54 // same-origin frames in one processs but cannot jump between processes. 57 // same-origin frames in one processs but cannot jump between processes.
55 std::set<BrokenHostEntry> ran_insecure_content_hosts_; 58 std::set<BrokenHostEntry> ran_insecure_content_hosts_;
56 59
57 // Certificate policies for each host. 60 // Certificate policies for each host.
58 std::map<std::string, net::CertPolicy> cert_policy_for_host_; 61 std::map<std::string, net::CertPolicy> cert_policy_for_host_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(SSLHostState); 63 DISALLOW_COPY_AND_ASSIGN(SSLHostState);
61 }; 64 };
62 65
63 #endif // CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ 66 #endif // CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698