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

Unified Diff: net/quic/crypto/properties_based_quic_server_info.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/crypto/properties_based_quic_server_info.cc
diff --git a/net/quic/crypto/properties_based_quic_server_info.cc b/net/quic/crypto/properties_based_quic_server_info.cc
deleted file mode 100644
index 5522f6c06064dc71503c4733d7caaf08057049c2..0000000000000000000000000000000000000000
--- a/net/quic/crypto/properties_based_quic_server_info.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/quic/crypto/properties_based_quic_server_info.h"
-
-#include "base/base64.h"
-#include "net/base/net_errors.h"
-#include "net/http/http_server_properties.h"
-
-using std::string;
-
-namespace net {
-
-PropertiesBasedQuicServerInfo::PropertiesBasedQuicServerInfo(
- const QuicServerId& server_id,
- HttpServerProperties* http_server_properties)
- : QuicServerInfo(server_id),
- http_server_properties_(http_server_properties) {
- DCHECK(http_server_properties_);
-}
-
-PropertiesBasedQuicServerInfo::~PropertiesBasedQuicServerInfo() {}
-
-void PropertiesBasedQuicServerInfo::Start() {}
-
-int PropertiesBasedQuicServerInfo::WaitForDataReady(
- const CompletionCallback& callback) {
- const string* data = http_server_properties_->GetQuicServerInfo(server_id_);
- string decoded;
- if (!data || !base::Base64Decode(*data, &decoded) || !Parse(decoded)) {
- return ERR_FAILED;
- }
- return OK;
-}
-
-void PropertiesBasedQuicServerInfo::ResetWaitForDataReadyCallback() {}
-
-void PropertiesBasedQuicServerInfo::CancelWaitForDataReadyCallback() {}
-
-bool PropertiesBasedQuicServerInfo::IsDataReady() {
- return true;
-}
-
-bool PropertiesBasedQuicServerInfo::IsReadyToPersist() {
- return true;
-}
-
-void PropertiesBasedQuicServerInfo::Persist() {
- string encoded;
- base::Base64Encode(Serialize(), &encoded);
- http_server_properties_->SetQuicServerInfo(server_id_, encoded);
-}
-
-void PropertiesBasedQuicServerInfo::OnExternalCacheHit() {}
-
-PropertiesBasedQuicServerInfoFactory::PropertiesBasedQuicServerInfoFactory(
- HttpServerProperties* http_server_properties)
- : http_server_properties_(http_server_properties) {}
-
-PropertiesBasedQuicServerInfoFactory::~PropertiesBasedQuicServerInfoFactory() {}
-
-QuicServerInfo* PropertiesBasedQuicServerInfoFactory::GetForServer(
- const QuicServerId& server_id) {
- return new PropertiesBasedQuicServerInfo(server_id, http_server_properties_);
-}
-
-} // namespace net
« no previous file with comments | « net/quic/crypto/properties_based_quic_server_info.h ('k') | net/quic/crypto/properties_based_quic_server_info_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698