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

Side by Side Diff: chrome/browser/transport_security_persister.h

Issue 5270010: Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // TransportSecurityState maintains an in memory database containing the 5 // TransportSecurityState maintains an in memory database containing the
6 // list of hosts that currently have transport security enabled. This 6 // list of hosts that currently have transport security enabled. This
7 // singleton object deals with writing that data out to disk as needed and 7 // singleton object deals with writing that data out to disk as needed and
8 // loading it at startup. 8 // loading it at startup.
9 9
10 // At startup we need to load the transport security state from the 10 // At startup we need to load the transport security state from the
11 // disk. For the moment, we don't want to delay startup for this load, so we 11 // disk. For the moment, we don't want to delay startup for this load, so we
(...skipping 15 matching lines...) Expand all
27 // ... 27 // ...
28 // 28 //
29 // TransportSecurityPersister::SerialiseState 29 // TransportSecurityPersister::SerialiseState
30 // copies the current state of the TransportSecurityState, serialises 30 // copies the current state of the TransportSecurityState, serialises
31 // and writes to disk. 31 // and writes to disk.
32 32
33 #ifndef CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_ 33 #ifndef CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_
34 #define CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_ 34 #define CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_
35 #pragma once 35 #pragma once
36 36
37 #include <string>
38
39 #include "base/file_path.h" 37 #include "base/file_path.h"
38 #include "base/lock.h"
40 #include "base/ref_counted.h" 39 #include "base/ref_counted.h"
41 #include "base/task.h" 40 #include "base/task.h"
42 #include "net/base/transport_security_state.h" 41 #include "net/base/transport_security_state.h"
43 42
44 class TransportSecurityPersister 43 class TransportSecurityPersister
45 : public base::RefCountedThreadSafe<TransportSecurityPersister>, 44 : public base::RefCountedThreadSafe<TransportSecurityPersister>,
46 public net::TransportSecurityState::Delegate { 45 public net::TransportSecurityState::Delegate {
47 public: 46 public:
48 TransportSecurityPersister(); 47 TransportSecurityPersister();
49 void Initialize(net::TransportSecurityState* state, 48 void Initialize(net::TransportSecurityState* state,
(...skipping 17 matching lines...) Expand all
67 ScopedRunnableMethodFactory<TransportSecurityPersister> save_coalescer_; 66 ScopedRunnableMethodFactory<TransportSecurityPersister> save_coalescer_;
68 67
69 scoped_refptr<net::TransportSecurityState> 68 scoped_refptr<net::TransportSecurityState>
70 transport_security_state_; // IO thread only. 69 transport_security_state_; // IO thread only.
71 70
72 // The path to the file in which we store the serialised state. 71 // The path to the file in which we store the serialised state.
73 FilePath state_file_; 72 FilePath state_file_;
74 }; 73 };
75 74
76 #endif // CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_ 75 #endif // CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.h ('k') | chrome/browser/utility_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698