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

Side by Side Diff: net/base/transport_security_state.h

Issue 8050027: Fix Windows shared library build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 NET_BASE_TRANSPORT_SECURITY_STATE_H_ 5 #ifndef NET_BASE_TRANSPORT_SECURITY_STATE_H_
6 #define NET_BASE_TRANSPORT_SECURITY_STATE_H_ 6 #define NET_BASE_TRANSPORT_SECURITY_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
18 #include "net/base/x509_cert_types.h" 18 #include "net/base/x509_cert_types.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 // TransportSecurityState 22 // TransportSecurityState
23 // 23 //
24 // Tracks which hosts have enabled *-Transport-Security. This object manages 24 // Tracks which hosts have enabled *-Transport-Security. This object manages
25 // the in-memory store. A separate object must register itself with this object 25 // the in-memory store. A separate object must register itself with this object
26 // in order to persist the state to disk. 26 // in order to persist the state to disk.
27 class NET_EXPORT TransportSecurityState : public base::NonThreadSafe { 27 class NET_EXPORT TransportSecurityState
28 : NON_EXPORTED_BASE(public base::NonThreadSafe) {
28 public: 29 public:
29 // If non-empty, |hsts_hosts| is a JSON-formatted string to treat as if it 30 // If non-empty, |hsts_hosts| is a JSON-formatted string to treat as if it
30 // were a built-in entry (same format as persisted metadata in the 31 // were a built-in entry (same format as persisted metadata in the
31 // TransportSecurityState file). 32 // TransportSecurityState file).
32 explicit TransportSecurityState(const std::string& hsts_hosts); 33 explicit TransportSecurityState(const std::string& hsts_hosts);
33 ~TransportSecurityState(); 34 ~TransportSecurityState();
34 35
35 // A DomainState is the information that we persist about a given domain. 36 // A DomainState is the information that we persist about a given domain.
36 struct NET_EXPORT DomainState { 37 struct NET_EXPORT DomainState {
37 enum Mode { 38 enum Mode {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 167
167 // Our delegate who gets notified when we are dirtied, or NULL. 168 // Our delegate who gets notified when we are dirtied, or NULL.
168 Delegate* delegate_; 169 Delegate* delegate_;
169 170
170 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); 171 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState);
171 }; 172 };
172 173
173 } // namespace net 174 } // namespace net
174 175
175 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_ 176 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698