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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 5527003: Rename MediaFilter and MediaFilterCollection to Filter and FilterCollection, respectively. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Missed a few more Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/media/ipc_video_decoder.h ('k') | media/base/filter_collection.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "chrome/renderer/websharedworker_proxy.h" 94 #include "chrome/renderer/websharedworker_proxy.h"
95 #include "chrome/renderer/webworker_proxy.h" 95 #include "chrome/renderer/webworker_proxy.h"
96 #include "gfx/color_utils.h" 96 #include "gfx/color_utils.h"
97 #include "gfx/favicon_size.h" 97 #include "gfx/favicon_size.h"
98 #include "gfx/native_widget_types.h" 98 #include "gfx/native_widget_types.h"
99 #include "gfx/point.h" 99 #include "gfx/point.h"
100 #include "gfx/rect.h" 100 #include "gfx/rect.h"
101 #include "gfx/skbitmap_operations.h" 101 #include "gfx/skbitmap_operations.h"
102 #include "grit/generated_resources.h" 102 #include "grit/generated_resources.h"
103 #include "grit/renderer_resources.h" 103 #include "grit/renderer_resources.h"
104 #include "media/base/filter_collection.h"
104 #include "media/base/media_switches.h" 105 #include "media/base/media_switches.h"
105 #include "net/base/data_url.h" 106 #include "net/base/data_url.h"
106 #include "net/base/escape.h" 107 #include "net/base/escape.h"
107 #include "net/base/net_errors.h" 108 #include "net/base/net_errors.h"
108 #include "skia/ext/bitmap_platform_device.h" 109 #include "skia/ext/bitmap_platform_device.h"
109 #include "skia/ext/image_operations.h" 110 #include "skia/ext/image_operations.h"
110 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityCache.h" 111 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityCache.h"
111 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" 112 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h"
112 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" 113 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
113 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h" 114 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h"
(...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 return new WebSharedWorkerProxy(RenderThread::current(), 2784 return new WebSharedWorkerProxy(RenderThread::current(),
2784 document_id, 2785 document_id,
2785 exists, 2786 exists,
2786 route_id, 2787 route_id,
2787 routing_id_); 2788 routing_id_);
2788 } 2789 }
2789 } 2790 }
2790 2791
2791 WebMediaPlayer* RenderView::createMediaPlayer( 2792 WebMediaPlayer* RenderView::createMediaPlayer(
2792 WebFrame* frame, WebMediaPlayerClient* client) { 2793 WebFrame* frame, WebMediaPlayerClient* client) {
2793 scoped_ptr<media::MediaFilterCollection> collection( 2794 scoped_ptr<media::FilterCollection> collection(
2794 new media::MediaFilterCollection()); 2795 new media::FilterCollection());
2795 2796
2796 // Add in any custom filter factories first. 2797 // Add in any custom filter factories first.
2797 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 2798 const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
2798 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { 2799 if (!cmd_line->HasSwitch(switches::kDisableAudio)) {
2799 // Add the chrome specific audio renderer. 2800 // Add the chrome specific audio renderer.
2800 collection->AddAudioRenderer(new AudioRendererImpl(audio_message_filter())); 2801 collection->AddAudioRenderer(new AudioRendererImpl(audio_message_filter()));
2801 } 2802 }
2802 2803
2803 if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) && 2804 if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) &&
2804 !cmd_line->HasSwitch(switches::kDisableAcceleratedCompositing)) { 2805 !cmd_line->HasSwitch(switches::kDisableAcceleratedCompositing)) {
(...skipping 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5665 external_popup_menu_.reset(); 5666 external_popup_menu_.reset();
5666 } 5667 }
5667 #endif 5668 #endif
5668 5669
5669 void RenderView::AddErrorToRootConsole(const string16& message) { 5670 void RenderView::AddErrorToRootConsole(const string16& message) {
5670 if (webview() && webview()->mainFrame()) { 5671 if (webview() && webview()->mainFrame()) {
5671 webview()->mainFrame()->addMessageToConsole( 5672 webview()->mainFrame()->addMessageToConsole(
5672 WebConsoleMessage(WebConsoleMessage::LevelError, message)); 5673 WebConsoleMessage(WebConsoleMessage::LevelError, message));
5673 } 5674 }
5674 } 5675 }
OLDNEW
« no previous file with comments | « chrome/renderer/media/ipc_video_decoder.h ('k') | media/base/filter_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698