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

Side by Side Diff: media/blink/resource_multibuffer_data_provider.h

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ 5 #ifndef MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_
6 #define MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ 6 #define MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 27 matching lines...) Expand all
38 virtual void Start(); 38 virtual void Start();
39 39
40 // MultiBuffer::DataProvider implementation 40 // MultiBuffer::DataProvider implementation
41 MultiBufferBlockId Tell() const override; 41 MultiBufferBlockId Tell() const override;
42 bool Available() const override; 42 bool Available() const override;
43 int64_t AvailableBytes() const override; 43 int64_t AvailableBytes() const override;
44 scoped_refptr<DataBuffer> Read() override; 44 scoped_refptr<DataBuffer> Read() override;
45 void SetDeferred(bool defer) override; 45 void SetDeferred(bool defer) override;
46 46
47 // blink::WebURLLoaderClient implementation. 47 // blink::WebURLLoaderClient implementation.
48 void willFollowRedirect(blink::WebURLLoader* loader, 48 bool willFollowRedirect(blink::WebURLLoader* loader,
49 blink::WebURLRequest& newRequest, 49 blink::WebURLRequest& newRequest,
50 const blink::WebURLResponse& redirectResponse, 50 const blink::WebURLResponse& redirectResponse,
51 int64_t encodedDataLength) override; 51 int64_t encodedDataLength) override;
52 void didSendData(blink::WebURLLoader* loader, 52 void didSendData(blink::WebURLLoader* loader,
53 unsigned long long bytesSent, 53 unsigned long long bytesSent,
54 unsigned long long totalBytesToBeSent) override; 54 unsigned long long totalBytesToBeSent) override;
55 void didReceiveResponse(blink::WebURLLoader* loader, 55 void didReceiveResponse(blink::WebURLLoader* loader,
56 const blink::WebURLResponse& response) override; 56 const blink::WebURLResponse& response) override;
57 void didDownloadData(blink::WebURLLoader* loader, 57 void didDownloadData(blink::WebURLLoader* loader,
58 int data_length, 58 int data_length,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // When we encounter a redirect, this is the source of the redirect. 129 // When we encounter a redirect, this is the source of the redirect.
130 GURL redirects_to_; 130 GURL redirects_to_;
131 131
132 base::WeakPtrFactory<ResourceMultiBufferDataProvider> weak_factory_; 132 base::WeakPtrFactory<ResourceMultiBufferDataProvider> weak_factory_;
133 }; 133 };
134 134
135 } // namespace media 135 } // namespace media
136 136
137 #endif // MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_ 137 #endif // MEDIA_BLINK_RESOURCE_MULTIBUFFER_DATA_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698