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

Side by Side Diff: net/http/disk_cache_based_ssl_host_info.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | « net/disk_cache/stats_histogram.h ('k') | net/http/http_auth_filter.h » ('j') | 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_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ 5 #ifndef NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_
6 #define NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ 6 #define NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 class NET_EXPORT_PRIVATE DiskCacheBasedSSLHostInfo 26 class NET_EXPORT_PRIVATE DiskCacheBasedSSLHostInfo
27 : public SSLHostInfo, 27 : public SSLHostInfo,
28 public NON_EXPORTED_BASE(base::NonThreadSafe) { 28 public NON_EXPORTED_BASE(base::NonThreadSafe) {
29 public: 29 public:
30 DiskCacheBasedSSLHostInfo(const std::string& hostname, 30 DiskCacheBasedSSLHostInfo(const std::string& hostname,
31 const SSLConfig& ssl_config, 31 const SSLConfig& ssl_config,
32 CertVerifier* cert_verifier, 32 CertVerifier* cert_verifier,
33 HttpCache* http_cache); 33 HttpCache* http_cache);
34 34
35 // Implementation of SSLHostInfo 35 // Implementation of SSLHostInfo
36 virtual void Start(); 36 virtual void Start() OVERRIDE;
37 virtual int WaitForDataReady(OldCompletionCallback* callback); 37 virtual int WaitForDataReady(OldCompletionCallback* callback) OVERRIDE;
38 virtual void Persist(); 38 virtual void Persist() OVERRIDE;
39 39
40 private: 40 private:
41 enum State { 41 enum State {
42 GET_BACKEND, 42 GET_BACKEND,
43 GET_BACKEND_COMPLETE, 43 GET_BACKEND_COMPLETE,
44 OPEN, 44 OPEN,
45 OPEN_COMPLETE, 45 OPEN_COMPLETE,
46 READ, 46 READ,
47 READ_COMPLETE, 47 READ_COMPLETE,
48 WAIT_FOR_DATA_READY_DONE, 48 WAIT_FOR_DATA_READY_DONE,
(...skipping 10 matching lines...) Expand all
59 CallbackImpl(const base::WeakPtr<DiskCacheBasedSSLHostInfo>& obj, 59 CallbackImpl(const base::WeakPtr<DiskCacheBasedSSLHostInfo>& obj,
60 void (DiskCacheBasedSSLHostInfo::*meth)(int)); 60 void (DiskCacheBasedSSLHostInfo::*meth)(int));
61 virtual ~CallbackImpl(); 61 virtual ~CallbackImpl();
62 62
63 disk_cache::Backend** backend_pointer() { return &backend_; } 63 disk_cache::Backend** backend_pointer() { return &backend_; }
64 disk_cache::Entry** entry_pointer() { return &entry_; } 64 disk_cache::Entry** entry_pointer() { return &entry_; }
65 disk_cache::Backend* backend() const { return backend_; } 65 disk_cache::Backend* backend() const { return backend_; }
66 disk_cache::Entry* entry() const { return entry_; } 66 disk_cache::Entry* entry() const { return entry_; }
67 67
68 // CallbackRunner<Tuple1<int> >: 68 // CallbackRunner<Tuple1<int> >:
69 virtual void RunWithParams(const Tuple1<int>& params); 69 virtual void RunWithParams(const Tuple1<int>& params) OVERRIDE;
70 70
71 private: 71 private:
72 base::WeakPtr<DiskCacheBasedSSLHostInfo> obj_; 72 base::WeakPtr<DiskCacheBasedSSLHostInfo> obj_;
73 void (DiskCacheBasedSSLHostInfo::*meth_)(int); 73 void (DiskCacheBasedSSLHostInfo::*meth_)(int);
74 74
75 disk_cache::Backend* backend_; 75 disk_cache::Backend* backend_;
76 disk_cache::Entry* entry_; 76 disk_cache::Entry* entry_;
77 }; 77 };
78 78
79 virtual ~DiskCacheBasedSSLHostInfo(); 79 virtual ~DiskCacheBasedSSLHostInfo();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 disk_cache::Entry* entry_; 116 disk_cache::Entry* entry_;
117 OldCompletionCallback* user_callback_; 117 OldCompletionCallback* user_callback_;
118 scoped_refptr<IOBuffer> read_buffer_; 118 scoped_refptr<IOBuffer> read_buffer_;
119 scoped_refptr<IOBuffer> write_buffer_; 119 scoped_refptr<IOBuffer> write_buffer_;
120 std::string data_; 120 std::string data_;
121 }; 121 };
122 122
123 } // namespace net 123 } // namespace net
124 124
125 #endif // NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ 125 #endif // NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_
OLDNEW
« no previous file with comments | « net/disk_cache/stats_histogram.h ('k') | net/http/http_auth_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698