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

Side by Side Diff: Source/web/AssociatedURLLoader.cpp

Issue 135753002: Update web classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/AssociatedURLLoader.h ('k') | Source/web/BackForwardClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2010, 2011, 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 m_blockedHeaders.remove(*it); 117 m_blockedHeaders.remove(*it);
118 } 118 }
119 119
120 return m_blockedHeaders; 120 return m_blockedHeaders;
121 } 121 }
122 122
123 } 123 }
124 124
125 // This class bridges the interface differences between WebCore and WebKit loade r clients. 125 // This class bridges the interface differences between WebCore and WebKit loade r clients.
126 // It forwards its ThreadableLoaderClient notifications to a WebURLLoaderClient. 126 // It forwards its ThreadableLoaderClient notifications to a WebURLLoaderClient.
127 class AssociatedURLLoader::ClientAdapter : public DocumentThreadableLoaderClient { 127 class AssociatedURLLoader::ClientAdapter FINAL : public DocumentThreadableLoader Client {
128 WTF_MAKE_NONCOPYABLE(ClientAdapter); 128 WTF_MAKE_NONCOPYABLE(ClientAdapter);
129 public: 129 public:
130 static PassOwnPtr<ClientAdapter> create(AssociatedURLLoader*, WebURLLoaderCl ient*, const WebURLLoaderOptions&); 130 static PassOwnPtr<ClientAdapter> create(AssociatedURLLoader*, WebURLLoaderCl ient*, const WebURLLoaderOptions&);
131 131
132 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long lon g /*totalBytesToBeSent*/); 132 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long lon g /*totalBytesToBeSent*/) OVERRIDE;
133 virtual void willSendRequest(ResourceRequest& /*newRequest*/, const Resource Response& /*redirectResponse*/); 133 virtual void willSendRequest(ResourceRequest& /*newRequest*/, const Resource Response& /*redirectResponse*/) OVERRIDE;
134 134
135 virtual void didReceiveResponse(unsigned long, const ResourceResponse&); 135 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVER RIDE;
136 virtual void didDownloadData(int /*dataLength*/); 136 virtual void didDownloadData(int /*dataLength*/) OVERRIDE;
137 virtual void didReceiveData(const char*, int /*dataLength*/); 137 virtual void didReceiveData(const char*, int /*dataLength*/) OVERRIDE;
138 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/); 138 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) OVERR IDE;
139 virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishT ime*/); 139 virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishT ime*/) OVERRIDE;
140 virtual void didFail(const ResourceError&); 140 virtual void didFail(const ResourceError&) OVERRIDE;
141 virtual void didFailRedirectCheck(); 141 virtual void didFailRedirectCheck() OVERRIDE;
142 142
143 // Sets an error to be reported back to the client, asychronously. 143 // Sets an error to be reported back to the client, asychronously.
144 void setDelayedError(const ResourceError&); 144 void setDelayedError(const ResourceError&);
145 145
146 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes e must be 146 // Enables forwarding of error notifications to the WebURLLoaderClient. Thes e must be
147 // deferred until after the call to AssociatedURLLoader::loadAsynchronously( ) completes. 147 // deferred until after the call to AssociatedURLLoader::loadAsynchronously( ) completes.
148 void enableErrorNotifications(); 148 void enableErrorNotifications();
149 149
150 // Stops loading and releases the DocumentThreadableLoader as early as possi ble. 150 // Stops loading and releases the DocumentThreadableLoader as early as possi ble.
151 void clearClient() { m_client = 0; } 151 void clearClient() { m_client = 0; }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 m_loader->cancel(); 365 m_loader->cancel();
366 } 366 }
367 367
368 void AssociatedURLLoader::setDefersLoading(bool defersLoading) 368 void AssociatedURLLoader::setDefersLoading(bool defersLoading)
369 { 369 {
370 if (m_loader) 370 if (m_loader)
371 m_loader->setDefersLoading(defersLoading); 371 m_loader->setDefersLoading(defersLoading);
372 } 372 }
373 373
374 } // namespace blink 374 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/AssociatedURLLoader.h ('k') | Source/web/BackForwardClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698