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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_SERVER_INFO_H_ 5 #ifndef NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_
6 #define NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ 6 #define NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 16 matching lines...) Expand all
27 class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo 27 class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo
28 : public QuicServerInfo, 28 : public QuicServerInfo,
29 public NON_EXPORTED_BASE(base::NonThreadSafe) { 29 public NON_EXPORTED_BASE(base::NonThreadSafe) {
30 public: 30 public:
31 DiskCacheBasedQuicServerInfo(const QuicServerId& server_id, 31 DiskCacheBasedQuicServerInfo(const QuicServerId& server_id,
32 HttpCache* http_cache); 32 HttpCache* http_cache);
33 33
34 // QuicServerInfo implementation. 34 // QuicServerInfo implementation.
35 void Start() override; 35 void Start() override;
36 int WaitForDataReady(const CompletionCallback& callback) override; 36 int WaitForDataReady(const CompletionCallback& callback) override;
37 void ResetWaitForDataReadyCallback() override;
37 void CancelWaitForDataReadyCallback() override; 38 void CancelWaitForDataReadyCallback() override;
38 bool IsDataReady() override; 39 bool IsDataReady() override;
39 bool IsReadyToPersist() override; 40 bool IsReadyToPersist() override;
40 void Persist() override; 41 void Persist() override;
41 void OnExternalCacheHit() override; 42 void OnExternalCacheHit() override;
42 43
43 private: 44 private:
44 struct CacheOperationDataShim; 45 struct CacheOperationDataShim;
45 46
46 enum State { 47 enum State {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 FailureReason last_failure_; 154 FailureReason last_failure_;
154 155
155 base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_; 156 base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(DiskCacheBasedQuicServerInfo); 158 DISALLOW_COPY_AND_ASSIGN(DiskCacheBasedQuicServerInfo);
158 }; 159 };
159 160
160 } // namespace net 161 } // namespace net
161 162
162 #endif // NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ 163 #endif // NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_
OLDNEW
« no previous file with comments | « net/docs/bug-triage-suggested-workflow.txt ('k') | net/http/disk_cache_based_quic_server_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698