mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
|
// Copyright (c) 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_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_
|
||
|
#define NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "base/macros.h"
|
||
|
#include "net/quic/core/quic_packets.h"
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
class QuicChromiumClientSession;
|
||
|
|
||
|
namespace test {
|
||
|
|
||
|
class QuicChromiumClientSessionPeer {
|
||
|
public:
|
||
|
static void SetMaxOpenStreams(QuicChromiumClientSession* session,
|
||
|
size_t max_streams,
|
||
|
size_t default_streams);
|
||
|
|
||
|
static void SetHostname(QuicChromiumClientSession* session,
|
||
|
const std::string& hostname);
|
||
|
|
||
|
static uint64_t GetPushedBytesCount(QuicChromiumClientSession* session);
|
||
|
|
||
|
static uint64_t GetPushedAndUnclaimedBytesCount(
|
||
|
QuicChromiumClientSession* session);
|
||
|
|
||
|
private:
|
||
|
DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSessionPeer);
|
||
|
};
|
||
|
|
||
|
} // namespace test
|
||
|
} // namespace net
|
||
|
|
||
|
#endif // NET_QUIC_CHROMIUM_QUIC_CHROMIUM_CLIENT_SESSION_PEER_H_
|