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

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

Issue 405011: Use an explicit boolean has_new_first_party_for_cookies instead... (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
« no previous file with comments | « webkit/glue/media/buffered_data_source.cc ('k') | webkit/glue/media/simple_data_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool* has_new_first_party_for_cookies,
59 GURL* new_first_party_for_cookies); 60 GURL* new_first_party_for_cookies);
60 virtual void OnReceivedResponse( 61 virtual void OnReceivedResponse(
61 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 62 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
62 bool content_filtered); 63 bool content_filtered);
63 virtual void OnReceivedData(const char* data, int len); 64 virtual void OnReceivedData(const char* data, int len);
64 virtual void OnCompletedRequest(const URLRequestStatus& status, 65 virtual void OnCompletedRequest(const URLRequestStatus& status,
65 const std::string& security_info); 66 const std::string& security_info);
66 virtual GURL GetURLForDebugging() const; 67 virtual GURL GetURLForDebugging() const;
67 68
68 private: 69 private:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 // Filter callbacks. 117 // Filter callbacks.
117 scoped_ptr<media::FilterCallback> initialize_callback_; 118 scoped_ptr<media::FilterCallback> initialize_callback_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource); 120 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource);
120 }; 121 };
121 122
122 } // namespace webkit_glue 123 } // namespace webkit_glue
123 124
124 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_ 125 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/buffered_data_source.cc ('k') | webkit/glue/media/simple_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698