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

Side by Side Diff: webkit/glue/media/simple_data_source.h

Issue 385024: Propagate the "first party for cookies" from WebKit through the resource... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // An extremely simple implementation of DataSource that downloads the entire 5 // An extremely simple implementation of DataSource that downloads the entire
6 // media resource into memory before signaling that initialization has finished. 6 // media resource into memory before signaling that initialization has finished.
7 // Primarily used to test <audio> and <video> with buffering/caching removed 7 // Primarily used to test <audio> and <video> with buffering/caching removed
8 // from the equation. 8 // from the equation.
9 9
10 #ifndef WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_ 10 #ifndef WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void Read(int64 position, size_t size, 48 virtual void Read(int64 position, size_t size,
49 uint8* data, ReadCallback* read_callback); 49 uint8* data, ReadCallback* read_callback);
50 virtual bool GetSize(int64* size_out); 50 virtual bool GetSize(int64* size_out);
51 virtual bool IsStreaming(); 51 virtual bool IsStreaming();
52 52
53 // webkit_glue::ResourceLoaderBridge::Peer implementation. 53 // webkit_glue::ResourceLoaderBridge::Peer implementation.
54 virtual void OnDownloadProgress(uint64 position, uint64 size); 54 virtual void OnDownloadProgress(uint64 position, uint64 size);
55 virtual void OnUploadProgress(uint64 position, uint64 size); 55 virtual void OnUploadProgress(uint64 position, uint64 size);
56 virtual bool OnReceivedRedirect( 56 virtual bool OnReceivedRedirect(
57 const GURL& new_url, 57 const GURL& new_url,
58 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info); 58 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
59 GURL* new_first_party_for_cookies);
59 virtual void OnReceivedResponse( 60 virtual void OnReceivedResponse(
60 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 61 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
61 bool content_filtered); 62 bool content_filtered);
62 virtual void OnReceivedData(const char* data, int len); 63 virtual void OnReceivedData(const char* data, int len);
63 virtual void OnCompletedRequest(const URLRequestStatus& status, 64 virtual void OnCompletedRequest(const URLRequestStatus& status,
64 const std::string& security_info); 65 const std::string& security_info);
65 virtual GURL GetURLForDebugging() const; 66 virtual GURL GetURLForDebugging() const;
66 67
67 private: 68 private:
68 friend class media::FilterFactoryImpl2< 69 friend class media::FilterFactoryImpl2<
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 // Filter callbacks. 116 // Filter callbacks.
116 scoped_ptr<media::FilterCallback> initialize_callback_; 117 scoped_ptr<media::FilterCallback> initialize_callback_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource); 119 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource);
119 }; 120 };
120 121
121 } // namespace webkit_glue 122 } // namespace webkit_glue
122 123
123 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_ 124 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698