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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; } | 91 void setSendCallbackPolicy(SendCallbackPolicy sendLoadCallbacks) { m_options
.sendLoadCallbacks = sendLoadCallbacks; } |
92 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont
ent; } | 92 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont
ent; } |
93 | 93 |
94 bool reachedTerminalState() const { return m_reachedTerminalState; } | 94 bool reachedTerminalState() const { return m_reachedTerminalState; } |
95 | 95 |
96 const ResourceRequest& request() const { return m_request; } | 96 const ResourceRequest& request() const { return m_request; } |
97 | 97 |
98 void reportMemoryUsage(MemoryObjectInfo*) const; | |
99 | |
100 private: | 98 private: |
101 ResourceLoader(Frame*, CachedResource*, ResourceLoaderOptions); | 99 ResourceLoader(Frame*, CachedResource*, ResourceLoaderOptions); |
102 | 100 |
103 bool init(const ResourceRequest&); | 101 bool init(const ResourceRequest&); |
104 void start(); | 102 void start(); |
105 | 103 |
106 void didFinishLoadingOnePart(double finishTime); | 104 void didFinishLoadingOnePart(double finishTime); |
107 | 105 |
108 bool cancelled() const { return m_cancelled; } | 106 bool cancelled() const { return m_cancelled; } |
109 | 107 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 }; | 139 }; |
142 | 140 |
143 CachedResource* m_resource; | 141 CachedResource* m_resource; |
144 ResourceLoaderState m_state; | 142 ResourceLoaderState m_state; |
145 OwnPtr<RequestCountTracker> m_requestCountTracker; | 143 OwnPtr<RequestCountTracker> m_requestCountTracker; |
146 }; | 144 }; |
147 | 145 |
148 } | 146 } |
149 | 147 |
150 #endif | 148 #endif |
OLD | NEW |