blob: 57585048e3128aceb479f85389430b3a72f3ece6 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// 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_WEBURLREQUEST_IMPL_H_
#define WEBKIT_GLUE_WEBURLREQUEST_IMPL_H_
#include "webkit/glue/weburlrequest.h"
#include "ResourceRequest.h"
class WebRequestImpl : public WebRequest {
public:
WebRequestImpl();
explicit WebRequestImpl(const GURL& url);
explicit WebRequestImpl(const WebCore::ResourceRequest& request);
// WebRequest
virtual WebRequest* Clone() const;
virtual void SetURL(const GURL& url);
virtual GURL GetURL() const;
virtual void SetFirstPartyForCookies(const GURL& url);
virtual GURL GetFirstPartyForCookies() const;
virtual WebRequestCachePolicy GetCachePolicy() const;
virtual void SetCachePolicy(WebRequestCachePolicy policy);
virtual std::string GetHttpMethod() const;
virtual void SetHttpMethod(const std::string& method);
virtual std::string GetHttpHeaderValue(const std::string& field) const;
virtual void SetHttpHeaderValue(const std::string& field,
const std::string& value);
virtual void GetHttpHeaders(HeaderMap* headers) const;
virtual void SetHttpHeaders(const HeaderMap& headers);
virtual std::string GetHttpReferrer() const;
virtual std::string GetSecurityInfo() const;
virtual void SetSecurityInfo(const std::string& value);
virtual bool HasUploadData() const;
virtual void GetUploadData(net::UploadData* data) const;
virtual void SetUploadData(const net::UploadData& data);
virtual void SetRequestorID(int requestor_id);
// WebRequestImpl
const WebCore::ResourceRequest& resource_request() const {
return request_;
}
void set_resource_request(const WebCore::ResourceRequest& request) {
request_ = request;
}
protected:
WebCore::ResourceRequest request_;
};
#endif // #ifndef WEBKIT_GLUE_WEBURLREQUEST_IMPL_H_
|