forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweburlloader_impl.h
50 lines (40 loc) · 1.57 KB
/
weburlloader_impl.h
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
// Copyright (c) 2012 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_CHILD_WEBURLLOADER_IMPL_H_
#define WEBKIT_CHILD_WEBURLLOADER_IMPL_H_
#include "base/memory/ref_counted.h"
#include "third_party/WebKit/public/platform/WebURLLoader.h"
#include "webkit/child/webkit_child_export.h"
namespace webkit_glue {
class WebKitPlatformSupportImpl;
struct ResourceResponseInfo;
class WebURLLoaderImpl : public WebKit::WebURLLoader {
public:
explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform);
virtual ~WebURLLoaderImpl();
static WebKit::WebURLError CreateError(const WebKit::WebURL& unreachable_url,
int reason);
WEBKIT_CHILD_EXPORT static void PopulateURLResponse(
const GURL& url,
const ResourceResponseInfo& info,
WebKit::WebURLResponse* response);
// WebURLLoader methods:
virtual void loadSynchronously(
const WebKit::WebURLRequest& request,
WebKit::WebURLResponse& response,
WebKit::WebURLError& error,
WebKit::WebData& data);
virtual void loadAsynchronously(
const WebKit::WebURLRequest& request,
WebKit::WebURLLoaderClient* client);
virtual void cancel();
virtual void setDefersLoading(bool value);
virtual void didChangePriority(WebKit::WebURLRequest::Priority new_priority);
private:
class Context;
scoped_refptr<Context> context_;
WebKitPlatformSupportImpl* platform_;
};
} // namespace webkit_glue
#endif // WEBKIT_CHILD_WEBURLLOADER_IMPL_H_