OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class Resource; | 41 class Resource; |
42 class KURL; | 42 class KURL; |
43 class ResourceError; | 43 class ResourceError; |
44 class ResourceResponse; | 44 class ResourceResponse; |
45 class ResourceLoaderHost; | 45 class ResourceLoaderHost; |
46 | 46 |
47 class ResourceLoader : public RefCounted<ResourceLoader>, protected blink::WebUR
LLoaderClient { | 47 class ResourceLoader FINAL : public RefCounted<ResourceLoader>, protected blink:
:WebURLLoaderClient { |
48 public: | 48 public: |
49 static PassRefPtr<ResourceLoader> create(ResourceLoaderHost*, Resource*, con
st ResourceRequest&, const ResourceLoaderOptions&); | 49 static PassRefPtr<ResourceLoader> create(ResourceLoaderHost*, Resource*, con
st ResourceRequest&, const ResourceLoaderOptions&); |
50 virtual ~ResourceLoader(); | 50 virtual ~ResourceLoader(); |
51 | 51 |
52 void start(); | 52 void start(); |
53 void changeToSynchronous(); | 53 void changeToSynchronous(); |
54 | 54 |
55 void cancel(); | 55 void cancel(); |
56 void cancel(const ResourceError&); | 56 void cancel(const ResourceError&); |
57 void cancelIfNotFinishing(); | 57 void cancelIfNotFinishing(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Used for sanity checking to make sure we don't experience illegal state | 134 // Used for sanity checking to make sure we don't experience illegal state |
135 // transitions. | 135 // transitions. |
136 ConnectionState m_connectionState; | 136 ConnectionState m_connectionState; |
137 | 137 |
138 OwnPtr<RequestCountTracker> m_requestCountTracker; | 138 OwnPtr<RequestCountTracker> m_requestCountTracker; |
139 }; | 139 }; |
140 | 140 |
141 } | 141 } |
142 | 142 |
143 #endif | 143 #endif |
OLD | NEW |