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

Side by Side Diff: content/renderer/media/android/media_info_loader.h

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 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
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( 82 void willFollowRedirect(blink::WebURLLoader* loader,
83 blink::WebURLLoader* loader, 83 blink::WebURLRequest& newRequest,
84 blink::WebURLRequest& newRequest, 84 const blink::WebURLResponse& redirectResponse,
85 const blink::WebURLResponse& redirectResponse) 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,
93 int encodedDataLength) override; 93 int encodedDataLength) override;
94 void didReceiveData(blink::WebURLLoader* loader, 94 void didReceiveData(blink::WebURLLoader* loader,
95 const char* data, 95 const char* data,
96 int data_length, 96 int data_length,
97 int encoded_data_length) override; 97 int encoded_data_length,
98 int encoded_body_length) override;
98 void didReceiveCachedMetadata(blink::WebURLLoader* loader, 99 void didReceiveCachedMetadata(blink::WebURLLoader* loader,
99 const char* data, 100 const char* data,
100 int dataLength) override; 101 int dataLength) override;
101 void didFinishLoading(blink::WebURLLoader* loader, 102 void didFinishLoading(blink::WebURLLoader* loader,
102 double finishTime, 103 double finishTime,
103 int64_t total_encoded_data_length) override; 104 int64_t total_encoded_data_length) override;
104 void didFail(blink::WebURLLoader* loader, const blink::WebURLError&) override; 105 void didFail(blink::WebURLLoader* loader, const blink::WebURLError&) override;
105 106
106 void DidBecomeReady(Status status); 107 void DidBecomeReady(Status status);
107 108
(...skipping 12 matching lines...) Expand all
120 121
121 ReadyCB ready_cb_; 122 ReadyCB ready_cb_;
122 base::TimeTicks start_time_; 123 base::TimeTicks start_time_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader); 125 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader);
125 }; 126 };
126 127
127 } // namespace content 128 } // namespace content
128 129
129 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_ 130 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/web_url_loader_client_impl.cc ('k') | content/renderer/media/android/media_info_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698