~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/third_party/mod_spdy/src/mod_spdy/apache/apache_spdy_session_io.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2011 Google Inc.
2
 
//
3
 
// Licensed under the Apache License, Version 2.0 (the "License");
4
 
// you may not use this file except in compliance with the License.
5
 
// You may obtain a copy of the License at
6
 
//
7
 
//      http://www.apache.org/licenses/LICENSE-2.0
8
 
//
9
 
// Unless required by applicable law or agreed to in writing, software
10
 
// distributed under the License is distributed on an "AS IS" BASIS,
11
 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
// See the License for the specific language governing permissions and
13
 
// limitations under the License.
14
 
 
15
 
#ifndef MOD_SPDY_APACHE_APACHE_SPDY_SESSION_IO_H_
16
 
#define MOD_SPDY_APACHE_APACHE_SPDY_SESSION_IO_H_
17
 
 
18
 
#include "httpd.h"
19
 
 
20
 
#include "base/basictypes.h"
21
 
#include "mod_spdy/common/spdy_session_io.h"
22
 
 
23
 
namespace net {
24
 
class BufferedSpdyFramer;
25
 
class SpdyFrame;
26
 
}  // namespace net
27
 
 
28
 
namespace mod_spdy {
29
 
 
30
 
class ApacheSpdySessionIO : public SpdySessionIO {
31
 
 public:
32
 
  explicit ApacheSpdySessionIO(conn_rec* connection);
33
 
  ~ApacheSpdySessionIO();
34
 
 
35
 
  // SpdySessionIO methods:
36
 
  virtual bool IsConnectionAborted();
37
 
  virtual ReadStatus ProcessAvailableInput(bool block,
38
 
                                           net::BufferedSpdyFramer* framer);
39
 
  virtual WriteStatus SendFrameRaw(const net::SpdyFrame& frame);
40
 
 
41
 
 private:
42
 
  conn_rec* const connection_;
43
 
  apr_bucket_brigade* const input_brigade_;
44
 
  apr_bucket_brigade* const output_brigade_;
45
 
 
46
 
  DISALLOW_COPY_AND_ASSIGN(ApacheSpdySessionIO);
47
 
};
48
 
 
49
 
}  // namespace mod_spdy
50
 
 
51
 
#endif  // MOD_SPDY_APACHE_APACHE_SPDY_SESSION_IO_H_