diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 18:45:37 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 18:45:37 +0000 |
commit | d3576947a36233cbe4d5a692cdde99cbc0de6be6 (patch) | |
tree | 1ceab7c8f1c03e9a9c4c9d791d09b286245cac1c /content/renderer/media | |
parent | 83277226b5fa03ba72552ccaff113d714148105c (diff) | |
download | chromium_src-d3576947a36233cbe4d5a692cdde99cbc0de6be6.zip chromium_src-d3576947a36233cbe4d5a692cdde99cbc0de6be6.tar.gz chromium_src-d3576947a36233cbe4d5a692cdde99cbc0de6be6.tar.bz2 |
Update a few more references to WebFrame to use WebLocalFrame.
I've also updated the most straightforward changes to just remove
references to WebFrame altogether. Code that uses a mixture of both
throughout hasn't changed.
BUG=346764
Review URL: https://codereview.chromium.org/231793004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media')
3 files changed, 16 insertions, 14 deletions
diff --git a/content/renderer/media/buffered_data_source_unittest.cc b/content/renderer/media/buffered_data_source_unittest.cc index 718fd21..0f67898 100644 --- a/content/renderer/media/buffered_data_source_unittest.cc +++ b/content/renderer/media/buffered_data_source_unittest.cc @@ -13,7 +13,7 @@ #include "media/base/mock_filters.h" #include "media/base/test_helpers.h" #include "third_party/WebKit/public/platform/WebURLResponse.h" -#include "third_party/WebKit/public/web/WebFrame.h" +#include "third_party/WebKit/public/web/WebLocalFrame.h" #include "third_party/WebKit/public/web/WebView.h" using ::testing::_; @@ -23,7 +23,7 @@ using ::testing::InSequence; using ::testing::NiceMock; using ::testing::StrictMock; -using blink::WebFrame; +using blink::WebLocalFrame; using blink::WebString; using blink::WebURLLoader; using blink::WebURLResponse; @@ -49,7 +49,7 @@ class MockBufferedDataSource : public BufferedDataSource { public: MockBufferedDataSource( const scoped_refptr<base::MessageLoopProxy>& message_loop, - WebFrame* frame, + WebLocalFrame* frame, BufferedDataSourceHost* host) : BufferedDataSource(message_loop, frame, new media::MediaLog(), host, base::Bind(&MockBufferedDataSource::set_downloading, @@ -105,11 +105,13 @@ static const char kFileUrl[] = "file:///tmp/bar.webm"; class BufferedDataSourceTest : public testing::Test { public: BufferedDataSourceTest() - : view_(WebView::create(NULL)), frame_(WebFrame::create(&client_)) { + : view_(WebView::create(NULL)), frame_(WebLocalFrame::create(&client_)) { view_->setMainFrame(frame_); - data_source_.reset(new MockBufferedDataSource( - message_loop_.message_loop_proxy(), view_->mainFrame(), &host_)); + data_source_.reset( + new MockBufferedDataSource(message_loop_.message_loop_proxy(), + view_->mainFrame()->toWebLocalFrame(), + &host_)); } virtual ~BufferedDataSourceTest() { @@ -222,7 +224,7 @@ class BufferedDataSourceTest : public testing::Test { scoped_ptr<TestResponseGenerator> response_generator_; MockWebFrameClient client_; WebView* view_; - WebFrame* frame_; + WebLocalFrame* frame_; StrictMock<MockBufferedDataSourceHost> host_; base::MessageLoop message_loop_; diff --git a/content/renderer/media/buffered_resource_loader_unittest.cc b/content/renderer/media/buffered_resource_loader_unittest.cc index 94022f6..7bd23de 100644 --- a/content/renderer/media/buffered_resource_loader_unittest.cc +++ b/content/renderer/media/buffered_resource_loader_unittest.cc @@ -21,7 +21,7 @@ #include "third_party/WebKit/public/platform/WebURLError.h" #include "third_party/WebKit/public/platform/WebURLRequest.h" #include "third_party/WebKit/public/platform/WebURLResponse.h" -#include "third_party/WebKit/public/web/WebFrame.h" +#include "third_party/WebKit/public/web/WebLocalFrame.h" #include "third_party/WebKit/public/web/WebView.h" using ::testing::_; @@ -30,7 +30,7 @@ using ::testing::Return; using ::testing::Truly; using ::testing::NiceMock; -using blink::WebFrame; +using blink::WebLocalFrame; using blink::WebString; using blink::WebURLError; using blink::WebURLResponse; @@ -64,7 +64,7 @@ static bool CorrectAcceptEncoding(const blink::WebURLRequest &request) { class BufferedResourceLoaderTest : public testing::Test { public: BufferedResourceLoaderTest() - : view_(WebView::create(NULL)), frame_(WebFrame::create(&client_)) { + : view_(WebView::create(NULL)), frame_(WebLocalFrame::create(&client_)) { view_->setMainFrame(frame_); for (int i = 0; i < kDataSize; ++i) { @@ -297,7 +297,7 @@ class BufferedResourceLoaderTest : public testing::Test { MockWebFrameClient client_; WebView* view_; - WebFrame* frame_; + WebLocalFrame* frame_; base::MessageLoop message_loop_; diff --git a/content/renderer/media/renderer_webaudiodevice_impl.cc b/content/renderer/media/renderer_webaudiodevice_impl.cc index 7abb08c..1caac4c 100644 --- a/content/renderer/media/renderer_webaudiodevice_impl.cc +++ b/content/renderer/media/renderer_webaudiodevice_impl.cc @@ -11,11 +11,11 @@ #include "content/renderer/render_view_impl.h" #include "media/audio/audio_output_device.h" #include "media/base/media_switches.h" -#include "third_party/WebKit/public/web/WebFrame.h" +#include "third_party/WebKit/public/web/WebLocalFrame.h" #include "third_party/WebKit/public/web/WebView.h" using blink::WebAudioDevice; -using blink::WebFrame; +using blink::WebLocalFrame; using blink::WebVector; using blink::WebView; @@ -48,7 +48,7 @@ void RendererWebAudioDeviceImpl::start() { // starting the audio device. The reason for all this is because the creator // of the WebAudio objects might not be the actual source of the audio (e.g., // an extension creates a object that is passed and used within a page). - WebFrame* const web_frame = WebFrame::frameForCurrentContext(); + WebLocalFrame* const web_frame = WebLocalFrame::frameForCurrentContext(); WebView* const web_view = web_frame ? web_frame->view() : NULL; RenderFrame* const render_frame = web_frame ? RenderFrame::FromWebFrame(web_frame) : NULL; |