Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: Source/WebCore/platform/network/blackberry/ResourceHandleBlackBerry.cpp

Issue 12090050: Revert 138962 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Research In Motion Limited. All rights reserved. 2 * Copyright (C) 2009, 2010 Research In Motion Limited. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int playerId = static_cast<FrameLoaderClientBlackBerry*>(frame->loader()->cl ient())->playerId(); 119 int playerId = static_cast<FrameLoaderClientBlackBerry*>(frame->loader()->cl ient())->playerId();
120 return NetworkManager::instance()->startJob(playerId, this, frame, d->m_defe rsLoading); 120 return NetworkManager::instance()->startJob(playerId, this, frame, d->m_defe rsLoading);
121 } 121 }
122 122
123 void ResourceHandle::pauseLoad(bool pause) 123 void ResourceHandle::pauseLoad(bool pause)
124 { 124 {
125 if (NetworkManager::instance()) 125 if (NetworkManager::instance())
126 NetworkManager::instance()->pauseLoad(this, pause); 126 NetworkManager::instance()->pauseLoad(this, pause);
127 } 127 }
128 128
129 bool ResourceHandle::willLoadFromCache(ResourceRequest&, Frame*)
130 {
131 notImplemented();
132 return false;
133 }
134
129 void ResourceHandle::cancel() 135 void ResourceHandle::cancel()
130 { 136 {
131 NetworkManager::instance()->stopJob(this); 137 NetworkManager::instance()->stopJob(this);
132 setClient(0); 138 setClient(0);
133 } 139 }
134 140
135 void ResourceHandle::loadResourceSynchronously(NetworkingContext* context, const ResourceRequest& request, StoredCredentials, ResourceError& error, ResourceResp onse& response, Vector<char>& data) 141 void ResourceHandle::loadResourceSynchronously(NetworkingContext* context, const ResourceRequest& request, StoredCredentials, ResourceError& error, ResourceResp onse& response, Vector<char>& data)
136 { 142 {
137 if (!context || !context->isValid()) { 143 if (!context || !context->isValid()) {
138 ASSERT(false && "loadResourceSynchronously called with invalid networkin g context"); 144 ASSERT(false && "loadResourceSynchronously called with invalid networkin g context");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return; 177 return;
172 } 178 }
173 } 179 }
174 180
175 error = syncLoader.resourceError(); 181 error = syncLoader.resourceError();
176 data = syncLoader.data(); 182 data = syncLoader.data();
177 response = syncLoader.resourceResponse(); 183 response = syncLoader.resourceResponse();
178 } 184 }
179 185
180 } // namespace WebCore 186 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/platform/network/ResourceHandle.h ('k') | Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698