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

Unified Diff: net/quic/crypto/strike_register_client.h

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
« no previous file with comments | « net/quic/crypto/strike_register.cc ('k') | net/quic/crypto/strike_register_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/strike_register_client.h
diff --git a/net/quic/crypto/strike_register_client.h b/net/quic/crypto/strike_register_client.h
deleted file mode 100644
index 2bbf5b6d63c900a963db5d8cbf15514607227b79..0000000000000000000000000000000000000000
--- a/net/quic/crypto/strike_register_client.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef NET_QUIC_CRYPTO_STRIKE_REGISTER_CLIENT_H_
-#define NET_QUIC_CRYPTO_STRIKE_REGISTER_CLIENT_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/quic/crypto/strike_register.h"
-#include "net/quic/quic_time.h"
-
-namespace net {
-
-// Interface implemented by clients that talk to strike registers
-// implemented as local or remote services.
-class NET_EXPORT_PRIVATE StrikeRegisterClient {
- public:
- // Single use callback that will be invoked once the validation
- // operation is complete.
- class NET_EXPORT_PRIVATE ResultCallback {
- public:
- ResultCallback() {}
- virtual ~ResultCallback() {}
- void Run(bool nonce_is_valid_and_unique, InsertStatus nonce_error) {
- RunImpl(nonce_is_valid_and_unique, nonce_error);
- delete this;
- }
-
- protected:
- virtual void RunImpl(bool nonce_is_valid_and_unique,
- InsertStatus nonce_error) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ResultCallback);
- };
-
- StrikeRegisterClient() {}
- virtual ~StrikeRegisterClient() {}
-
- // Returns true iff the strike register knows about the given orbit.
- virtual bool IsKnownOrbit(base::StringPiece orbit) const = 0;
- // Validate a nonce for freshness and uniqueness.
- // Will invoke cb->Run(ValidateResponse::nonce_is_valid_and_unique(),
- // ValidateResponse::nonce_error())
- // once the asynchronous operation is complete.
- virtual void VerifyNonceIsValidAndUnique(base::StringPiece nonce,
- QuicWallTime now,
- ResultCallback* cb) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(StrikeRegisterClient);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_STRIKE_REGISTER_CLIENT_H_
« no previous file with comments | « net/quic/crypto/strike_register.cc ('k') | net/quic/crypto/strike_register_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698