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

Side by Side Diff: components/html_viewer/frame.cc

Issue 1234573004: Remove old createMediaPlayer method from WebFrameClient implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed redundant include Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « components/html_viewer/frame.h ('k') | components/html_viewer/html_document.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/html_viewer/frame.h" 5 #include "components/html_viewer/frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 15 matching lines...) Expand all
26 #include "components/view_manager/public/cpp/view_manager.h" 26 #include "components/view_manager/public/cpp/view_manager.h"
27 #include "components/view_manager/public/interfaces/surfaces.mojom.h" 27 #include "components/view_manager/public/interfaces/surfaces.mojom.h"
28 #include "mandoline/services/navigation/public/interfaces/navigation.mojom.h" 28 #include "mandoline/services/navigation/public/interfaces/navigation.mojom.h"
29 #include "mojo/application/public/cpp/application_impl.h" 29 #include "mojo/application/public/cpp/application_impl.h"
30 #include "mojo/application/public/cpp/connect.h" 30 #include "mojo/application/public/cpp/connect.h"
31 #include "mojo/application/public/interfaces/shell.mojom.h" 31 #include "mojo/application/public/interfaces/shell.mojom.h"
32 #include "mojo/converters/geometry/geometry_type_converters.h" 32 #include "mojo/converters/geometry/geometry_type_converters.h"
33 #include "skia/ext/refptr.h" 33 #include "skia/ext/refptr.h"
34 #include "third_party/WebKit/public/platform/Platform.h" 34 #include "third_party/WebKit/public/platform/Platform.h"
35 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" 35 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
36 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h"
37 #include "third_party/WebKit/public/platform/WebSize.h" 36 #include "third_party/WebKit/public/platform/WebSize.h"
38 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 37 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
39 #include "third_party/WebKit/public/web/WebDocument.h" 38 #include "third_party/WebKit/public/web/WebDocument.h"
40 #include "third_party/WebKit/public/web/WebElement.h" 39 #include "third_party/WebKit/public/web/WebElement.h"
41 #include "third_party/WebKit/public/web/WebFrameWidget.h" 40 #include "third_party/WebKit/public/web/WebFrameWidget.h"
42 #include "third_party/WebKit/public/web/WebInputEvent.h" 41 #include "third_party/WebKit/public/web/WebInputEvent.h"
43 #include "third_party/WebKit/public/web/WebLocalFrame.h" 42 #include "third_party/WebKit/public/web/WebLocalFrame.h"
44 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 43 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
45 #include "third_party/WebKit/public/web/WebRemoteFrame.h" 44 #include "third_party/WebKit/public/web/WebRemoteFrame.h"
46 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" 45 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 376 }
378 377
379 blink::WebStorageNamespace* Frame::createSessionStorageNamespace() { 378 blink::WebStorageNamespace* Frame::createSessionStorageNamespace() {
380 return new WebStorageNamespaceImpl(); 379 return new WebStorageNamespaceImpl();
381 } 380 }
382 381
383 blink::WebMediaPlayer* Frame::createMediaPlayer( 382 blink::WebMediaPlayer* Frame::createMediaPlayer(
384 blink::WebLocalFrame* frame, 383 blink::WebLocalFrame* frame,
385 const blink::WebURL& url, 384 const blink::WebURL& url,
386 blink::WebMediaPlayerClient* client, 385 blink::WebMediaPlayerClient* client,
387 blink::WebContentDecryptionModule* initial_cdm) {
388 return createMediaPlayer(frame, url, client, client, initial_cdm);
389 }
390
391 blink::WebMediaPlayer* Frame::createMediaPlayer(
392 blink::WebLocalFrame* frame,
393 const blink::WebURL& url,
394 blink::WebMediaPlayerClient* client,
395 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, 386 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
396 blink::WebContentDecryptionModule* initial_cdm) { 387 blink::WebContentDecryptionModule* initial_cdm) {
397 return global_state()->media_factory()->CreateMediaPlayer( 388 return global_state()->media_factory()->CreateMediaPlayer(
398 frame, url, client, encrypted_client, initial_cdm, 389 frame, url, client, encrypted_client, initial_cdm,
399 frame_tree_manager_->app()->shell()); 390 frame_tree_manager_->app()->shell());
400 } 391 }
401 392
402 blink::WebFrame* Frame::createChildFrame(blink::WebLocalFrame* parent, 393 blink::WebFrame* Frame::createChildFrame(blink::WebLocalFrame* parent,
403 blink::WebTreeScopeType scope, 394 blink::WebTreeScopeType scope,
404 const blink::WebString& frame_name, 395 const blink::WebString& frame_name,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 503
513 void Frame::reload(bool ignore_cache, bool is_client_redirect) { 504 void Frame::reload(bool ignore_cache, bool is_client_redirect) {
514 NOTIMPLEMENTED(); 505 NOTIMPLEMENTED();
515 } 506 }
516 507
517 void Frame::forwardInputEvent(const blink::WebInputEvent* event) { 508 void Frame::forwardInputEvent(const blink::WebInputEvent* event) {
518 NOTIMPLEMENTED(); 509 NOTIMPLEMENTED();
519 } 510 }
520 511
521 } // namespace mojo 512 } // namespace mojo
OLDNEW
« no previous file with comments | « components/html_viewer/frame.h ('k') | components/html_viewer/html_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698