summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webresponse.h
blob: 34abd9353737766c25362561e25f81c8ca6552ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBURLRESPONSE_H_
#define WEBKIT_GLUE_WEBURLRESPONSE_H_

#include <string>

#include "base/basictypes.h"

class GURL;

class WebResponse {
 public:
  // Get the URL.
  virtual GURL GetURL() const = 0;
  
  // Get the http status code.
  virtual int GetHttpStatusCode() const = 0;

  // Returns an opaque value containing the state of the SSL connection that
  // the resource was loaded on, or an empty string if no SSL connection was
  // used.
  virtual std::string GetSecurityInfo() const = 0;

  // Returns whether the content of this resource was filtered (usually for
  // security reasons).
  virtual bool IsContentFiltered() const = 0;

  WebResponse() { }
  virtual ~WebResponse() { }

private:
  DISALLOW_EVIL_CONSTRUCTORS(WebResponse);
};

#endif  // #ifndef WEBKIT_GLUE_WEBURLRESPONSE_H_