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

Side by Side Diff: Source/core/loader/DocumentThreadableLoader.h

Issue 700413002: [DocumentThreadableLoader] Rename notifyResponseReceived to reportResponseReceived (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/loader/DocumentThreadableLoader.cpp » ('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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // RawResourceClient implementation 74 // RawResourceClient implementation
75 virtual void dataSent(Resource*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override; 75 virtual void dataSent(Resource*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
76 virtual void responseReceived(Resource*, const ResourceResponse&, PassOw nPtr<WebDataConsumerHandle>) override; 76 virtual void responseReceived(Resource*, const ResourceResponse&, PassOw nPtr<WebDataConsumerHandle>) override;
77 virtual void dataReceived(Resource*, const char* data, unsigned dataLeng th) override; 77 virtual void dataReceived(Resource*, const char* data, unsigned dataLeng th) override;
78 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) override; 78 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) override;
79 virtual void notifyFinished(Resource*) override; 79 virtual void notifyFinished(Resource*) override;
80 virtual void dataDownloaded(Resource*, int) override; 80 virtual void dataDownloaded(Resource*, int) override;
81 81
82 void cancelWithError(const ResourceError&); 82 void cancelWithError(const ResourceError&);
83 83
84 // Notify Inspector about resource response. Use this method if response is not going to be finished normally. 84 // Notify Inspector and log to console about resource response. Use
85 void notifyResponseReceived(unsigned long identifier, const ResourceResp onse&); 85 // this method if response is not going to be finished normally.
86 void reportResponseReceived(unsigned long identifier, const ResourceResp onse&);
86 87
87 // Methods containing code to handle resource fetch results which is 88 // Methods containing code to handle resource fetch results which is
88 // common to both sync and async mode. 89 // common to both sync and async mode.
89 void handleResponse(unsigned long identifier, const ResourceResponse&, P assOwnPtr<WebDataConsumerHandle>); 90 void handleResponse(unsigned long identifier, const ResourceResponse&, P assOwnPtr<WebDataConsumerHandle>);
90 void handleReceivedData(const char* data, unsigned dataLength); 91 void handleReceivedData(const char* data, unsigned dataLength);
91 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ; 92 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ;
92 93
93 void didTimeout(Timer<DocumentThreadableLoader>*); 94 void didTimeout(Timer<DocumentThreadableLoader>*);
94 // Calls the appropriate loading method according to policy and data 95 // Calls the appropriate loading method according to policy and data
95 // about origin. Only for handling the initial load (including fallback 96 // about origin. Only for handling the initial load (including fallback
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 OwnPtr<ResourceLoaderOptions> m_actualOptions; 143 OwnPtr<ResourceLoaderOptions> m_actualOptions;
143 144
144 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect. 145 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect.
145 Timer<DocumentThreadableLoader> m_timeoutTimer; 146 Timer<DocumentThreadableLoader> m_timeoutTimer;
146 double m_requestStartedSeconds; // Time an asynchronous fetch request is started 147 double m_requestStartedSeconds; // Time an asynchronous fetch request is started
147 }; 148 };
148 149
149 } // namespace blink 150 } // namespace blink
150 151
151 #endif // DocumentThreadableLoader_h 152 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698