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

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

Issue 196012: This changelist fixes some issues with the NPAPI WMP plugin work in Chrome. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/webplugin_delegate_proxy.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "webkit/appcache/appcache_interfaces.h" 74 #include "webkit/appcache/appcache_interfaces.h"
75 #include "webkit/default_plugin/default_plugin_shared.h" 75 #include "webkit/default_plugin/default_plugin_shared.h"
76 #include "webkit/glue/glue_serialize.h" 76 #include "webkit/glue/glue_serialize.h"
77 #include "webkit/glue/dom_operations.h" 77 #include "webkit/glue/dom_operations.h"
78 #include "webkit/glue/dom_serializer.h" 78 #include "webkit/glue/dom_serializer.h"
79 #include "webkit/glue/image_decoder.h" 79 #include "webkit/glue/image_decoder.h"
80 #include "webkit/glue/media/buffered_data_source.h" 80 #include "webkit/glue/media/buffered_data_source.h"
81 #include "webkit/glue/media/simple_data_source.h" 81 #include "webkit/glue/media/simple_data_source.h"
82 #include "webkit/glue/password_form.h" 82 #include "webkit/glue/password_form.h"
83 #include "webkit/glue/plugins/plugin_list.h" 83 #include "webkit/glue/plugins/plugin_list.h"
84 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
84 #include "webkit/glue/searchable_form_data.h" 85 #include "webkit/glue/searchable_form_data.h"
85 #include "webkit/glue/webaccessibilitymanager_impl.h" 86 #include "webkit/glue/webaccessibilitymanager_impl.h"
86 #include "webkit/glue/webdevtoolsagent_delegate.h" 87 #include "webkit/glue/webdevtoolsagent_delegate.h"
87 #include "webkit/glue/webdropdata.h" 88 #include "webkit/glue/webdropdata.h"
88 #include "webkit/glue/webkit_glue.h" 89 #include "webkit/glue/webkit_glue.h"
89 #include "webkit/glue/webmediaplayer_impl.h" 90 #include "webkit/glue/webmediaplayer_impl.h"
90 #include "webkit/glue/webplugin_delegate.h"
91 #include "webkit/glue/webplugin_impl.h" 91 #include "webkit/glue/webplugin_impl.h"
92 #include "webkit/glue/webview.h" 92 #include "webkit/glue/webview.h"
93 93
94 #if defined(OS_WIN) 94 #if defined(OS_WIN)
95 // TODO(port): these files are currently Windows only because they concern: 95 // TODO(port): these files are currently Windows only because they concern:
96 // * theming 96 // * theming
97 #include "base/gfx/native_theme.h" 97 #include "base/gfx/native_theme.h"
98 #endif 98 #endif
99 99
100 using base::Time; 100 using base::Time;
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 return NULL; 2036 return NULL;
2037 2037
2038 const std::string* mime_type_to_use; 2038 const std::string* mime_type_to_use;
2039 if (!actual_mime_type->empty()) 2039 if (!actual_mime_type->empty())
2040 mime_type_to_use = actual_mime_type; 2040 mime_type_to_use = actual_mime_type;
2041 else 2041 else
2042 mime_type_to_use = &mime_type; 2042 mime_type_to_use = &mime_type;
2043 2043
2044 if (RenderProcess::current()->in_process_plugins()) { 2044 if (RenderProcess::current()->in_process_plugins()) {
2045 #if defined(OS_WIN) // In-proc plugins aren't supported on Linux or Mac. 2045 #if defined(OS_WIN) // In-proc plugins aren't supported on Linux or Mac.
2046 return webkit_glue::WebPluginDelegate::Create( 2046 return WebPluginDelegateImpl::Create(
2047 path, *mime_type_to_use, gfx::NativeViewFromId(host_window_)); 2047 path, *mime_type_to_use, gfx::NativeViewFromId(host_window_));
2048 #else 2048 #else
2049 NOTIMPLEMENTED(); 2049 NOTIMPLEMENTED();
2050 return NULL; 2050 return NULL;
2051 #endif 2051 #endif
2052 } 2052 }
2053 2053
2054 return WebPluginDelegateProxy::Create( 2054 return new WebPluginDelegateProxy(*mime_type_to_use, clsid, AsWeakPtr());
2055 url, *mime_type_to_use, clsid, AsWeakPtr());
2056 } 2055 }
2057 2056
2058 void RenderView::CreatedPluginWindow(gfx::PluginWindowHandle window) { 2057 void RenderView::CreatedPluginWindow(gfx::PluginWindowHandle window) {
2059 #if defined(OS_LINUX) 2058 #if defined(OS_LINUX)
2060 RenderThread::current()->Send(new ViewHostMsg_CreatePluginContainer( 2059 RenderThread::current()->Send(new ViewHostMsg_CreatePluginContainer(
2061 routing_id(), window)); 2060 routing_id(), window));
2062 #endif 2061 #endif
2063 } 2062 }
2064 2063
2065 void RenderView::WillDestroyPluginWindow(gfx::PluginWindowHandle window) { 2064 void RenderView::WillDestroyPluginWindow(gfx::PluginWindowHandle window) {
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
3332 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3331 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3333 } 3332 }
3334 3333
3335 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3334 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3336 DCHECK(frame); 3335 DCHECK(frame);
3337 if (print_helper_.get() == NULL) { 3336 if (print_helper_.get() == NULL) {
3338 print_helper_.reset(new PrintWebViewHelper(this)); 3337 print_helper_.reset(new PrintWebViewHelper(this));
3339 } 3338 }
3340 print_helper_->Print(frame, script_initiated); 3339 print_helper_->Print(frame, script_initiated);
3341 } 3340 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698