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

Side by Side Diff: content/shell/renderer/test_runner/web_frame_test_proxy.h

Issue 784873004: Push API: delete MockWebPushClient [switchover 2/6] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" 9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h"
10 #include "content/shell/renderer/test_runner/test_interfaces.h" 10 #include "content/shell/renderer/test_runner/test_interfaces.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 virtual blink::WebUserMediaClient* userMediaClient() { 260 virtual blink::WebUserMediaClient* userMediaClient() {
261 return base_proxy_->GetUserMediaClient(); 261 return base_proxy_->GetUserMediaClient();
262 } 262 }
263 263
264 virtual blink::WebMIDIClient* webMIDIClient() { 264 virtual blink::WebMIDIClient* webMIDIClient() {
265 return base_proxy_->GetWebMIDIClient(); 265 return base_proxy_->GetWebMIDIClient();
266 } 266 }
267 267
268 virtual blink::WebPushClient* pushClient() {
269 return base_proxy_->GetWebPushClient();
270 }
271
272 virtual bool willCheckAndDispatchMessageEvent( 268 virtual bool willCheckAndDispatchMessageEvent(
273 blink::WebLocalFrame* source_frame, 269 blink::WebLocalFrame* source_frame,
274 blink::WebFrame* target_frame, 270 blink::WebFrame* target_frame,
275 blink::WebSecurityOrigin target, 271 blink::WebSecurityOrigin target,
276 blink::WebDOMMessageEvent event) { 272 blink::WebDOMMessageEvent event) {
277 if (base_proxy_->WillCheckAndDispatchMessageEvent( 273 if (base_proxy_->WillCheckAndDispatchMessageEvent(
278 source_frame, target_frame, target, event)) 274 source_frame, target_frame, target, event))
279 return true; 275 return true;
280 return Base::willCheckAndDispatchMessageEvent( 276 return Base::willCheckAndDispatchMessageEvent(
281 source_frame, target_frame, target, event); 277 source_frame, target_frame, target, event);
(...skipping 14 matching lines...) Expand all
296 #endif 292 #endif
297 293
298 WebTestProxyBase* base_proxy_; 294 WebTestProxyBase* base_proxy_;
299 295
300 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); 296 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy);
301 }; 297 };
302 298
303 } // namespace content 299 } // namespace content
304 300
305 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ 301 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/shell/renderer/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698