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

Unified Diff: media/blink/url_index.h

Issue 2962573002: Move SetReferrerForRequest method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/multibuffer_data_source_unittest.cc ('k') | media/blink/url_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/url_index.h
diff --git a/media/blink/url_index.h b/media/blink/url_index.h
index d8c2a6cf5b64ad826b5c5a9e9ac56bca7e330fc3..70d84109db7e3eddd7c01dfc0d3f9b5548ddd6fa 100644
--- a/media/blink/url_index.h
+++ b/media/blink/url_index.h
@@ -18,7 +18,7 @@
#include "media/blink/lru.h"
#include "media/blink/media_blink_export.h"
#include "media/blink/multibuffer.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "url/gurl.h"
namespace media {
@@ -140,7 +140,7 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
virtual ResourceMultiBuffer* multibuffer();
// Accessor
- blink::WebFrame* frame() const { return frame_; }
+ blink::WebLocalFrame* frame() const { return frame_; }
void AddBytesRead(int64_t b) { bytes_read_from_cache_ += b; }
int64_t BytesReadFromCache() { return bytes_read_from_cache_; }
@@ -206,7 +206,7 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
ResourceMultiBuffer multibuffer_;
std::vector<RedirectCB> redirect_callbacks_;
- blink::WebFrame* frame_;
+ blink::WebLocalFrame* frame_;
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(UrlData);
@@ -215,8 +215,8 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
// The UrlIndex lets you look up UrlData instances by url.
class MEDIA_BLINK_EXPORT UrlIndex {
public:
- explicit UrlIndex(blink::WebFrame*);
- UrlIndex(blink::WebFrame*, int block_shift);
+ explicit UrlIndex(blink::WebLocalFrame*);
+ UrlIndex(blink::WebLocalFrame*, int block_shift);
virtual ~UrlIndex();
// Look up an UrlData in the index and return it. If none is found,
@@ -242,7 +242,7 @@ class MEDIA_BLINK_EXPORT UrlIndex {
// TODO(hubbe): Add etag support.
scoped_refptr<UrlData> TryInsert(const scoped_refptr<UrlData>& url_data);
- blink::WebFrame* frame() const { return frame_; }
+ blink::WebLocalFrame* frame() const { return frame_; }
int block_shift() const { return block_shift_; }
private:
@@ -255,7 +255,7 @@ class MEDIA_BLINK_EXPORT UrlIndex {
UrlData::CORSMode cors_mode);
std::map<UrlData::KeyType, scoped_refptr<UrlData>> by_url_;
- blink::WebFrame* frame_;
+ blink::WebLocalFrame* frame_;
scoped_refptr<MultiBuffer::GlobalLRU> lru_;
// log2 of block size in multibuffer cache. Defaults to kBlockSizeShift.
« no previous file with comments | « media/blink/multibuffer_data_source_unittest.cc ('k') | media/blink/url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698