OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool HasSingleOrigin() const; | 72 bool HasSingleOrigin() const; |
73 | 73 |
74 // Returns true if the media resource passed a CORS access control check. | 74 // Returns true if the media resource passed a CORS access control check. |
75 // Only valid to call after the loader becomes ready. | 75 // Only valid to call after the loader becomes ready. |
76 bool DidPassCORSAccessCheck() const; | 76 bool DidPassCORSAccessCheck() const; |
77 | 77 |
78 private: | 78 private: |
79 friend class MediaInfoLoaderTest; | 79 friend class MediaInfoLoaderTest; |
80 | 80 |
81 // blink::WebURLLoaderClient implementation. | 81 // blink::WebURLLoaderClient implementation. |
82 void willFollowRedirect(blink::WebURLLoader* loader, | 82 bool willFollowRedirect(blink::WebURLLoader* loader, |
83 blink::WebURLRequest& newRequest, | 83 blink::WebURLRequest& newRequest, |
84 const blink::WebURLResponse& redirectResponse, | 84 const blink::WebURLResponse& redirectResponse, |
85 int64_t encodedDataLength) override; | 85 int64_t encodedDataLength) override; |
86 void didSendData(blink::WebURLLoader* loader, | 86 void didSendData(blink::WebURLLoader* loader, |
87 unsigned long long bytesSent, | 87 unsigned long long bytesSent, |
88 unsigned long long totalBytesToBeSent) override; | 88 unsigned long long totalBytesToBeSent) override; |
89 void didReceiveResponse(blink::WebURLLoader* loader, | 89 void didReceiveResponse(blink::WebURLLoader* loader, |
90 const blink::WebURLResponse& response) override; | 90 const blink::WebURLResponse& response) override; |
91 void didDownloadData(blink::WebURLLoader* loader, | 91 void didDownloadData(blink::WebURLLoader* loader, |
92 int data_length, | 92 int data_length, |
(...skipping 28 matching lines...) Expand all Loading... |
121 | 121 |
122 ReadyCB ready_cb_; | 122 ReadyCB ready_cb_; |
123 base::TimeTicks start_time_; | 123 base::TimeTicks start_time_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader); | 125 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
129 | 129 |
130 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ | 130 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ |
OLD | NEW |