| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void didReceiveResponse(ResourceHandle*, const ResourceResponse&) OV
ERRIDE; | 81 virtual void didReceiveResponse(ResourceHandle*, const ResourceResponse&) OV
ERRIDE; |
| 82 virtual void didReceiveData(ResourceHandle*, const char*, int, int encodedDa
taLength) OVERRIDE; | 82 virtual void didReceiveData(ResourceHandle*, const char*, int, int encodedDa
taLength) OVERRIDE; |
| 83 virtual void didReceiveCachedMetadata(ResourceHandle*, const char* data, int
length) OVERRIDE; | 83 virtual void didReceiveCachedMetadata(ResourceHandle*, const char* data, int
length) OVERRIDE; |
| 84 virtual void didFinishLoading(ResourceHandle*, double finishTime) OVERRIDE; | 84 virtual void didFinishLoading(ResourceHandle*, double finishTime) OVERRIDE; |
| 85 virtual void didFail(ResourceHandle*, const ResourceError&) OVERRIDE; | 85 virtual void didFail(ResourceHandle*, const ResourceError&) OVERRIDE; |
| 86 virtual void didDownloadData(ResourceHandle*, int) OVERRIDE; | 86 virtual void didDownloadData(ResourceHandle*, int) OVERRIDE; |
| 87 | 87 |
| 88 const KURL& url() const { return m_request.url(); } | 88 const KURL& url() const { return m_request.url(); } |
| 89 ResourceHandle* handle() const { return m_handle.get(); } | 89 ResourceHandle* handle() const { return m_handle.get(); } |
| 90 bool shouldSendResourceLoadCallbacks() const { return m_options.sendLoadCall
backs == SendCallbacks; } | 90 bool shouldSendResourceLoadCallbacks() const { return m_options.sendLoadCall
backs == SendCallbacks; } |
| 91 void setSendCallbackPolicy(SendCallbackPolicy sendLoadCallbacks) { m_options
.sendLoadCallbacks = sendLoadCallbacks; } | |
| 92 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont
ent; } | 91 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont
ent; } |
| 93 | 92 |
| 94 bool reachedTerminalState() const { return m_reachedTerminalState; } | 93 bool reachedTerminalState() const { return m_reachedTerminalState; } |
| 95 | 94 |
| 96 const ResourceRequest& request() const { return m_request; } | 95 const ResourceRequest& request() const { return m_request; } |
| 97 | 96 |
| 98 void reportMemoryUsage(MemoryObjectInfo*) const; | 97 void reportMemoryUsage(MemoryObjectInfo*) const; |
| 99 | 98 |
| 100 private: | 99 private: |
| 101 ResourceLoader(Frame*, CachedResource*, ResourceLoaderOptions); | 100 ResourceLoader(Frame*, CachedResource*, ResourceLoaderOptions); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 CachedResource* m_resource; | 142 CachedResource* m_resource; |
| 144 ResourceLoaderState m_state; | 143 ResourceLoaderState m_state; |
| 145 OwnPtr<RequestCountTracker> m_requestCountTracker; | 144 OwnPtr<RequestCountTracker> m_requestCountTracker; |
| 146 }; | 145 }; |
| 147 | 146 |
| 148 } | 147 } |
| 149 | 148 |
| 150 #endif | 149 #endif |
| OLD | NEW |