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

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

Issue 20413: old1 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/renderer/render_view.h ('k') | chrome/renderer/renderer.vcproj » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 13 matching lines...) Expand all
24 #include "chrome/common/resource_bundle.h" 24 #include "chrome/common/resource_bundle.h"
25 #include "chrome/common/thumbnail_score.h" 25 #include "chrome/common/thumbnail_score.h"
26 #include "chrome/renderer/about_handler.h" 26 #include "chrome/renderer/about_handler.h"
27 #include "chrome/renderer/debug_message_handler.h" 27 #include "chrome/renderer/debug_message_handler.h"
28 #include "chrome/renderer/localized_error.h" 28 #include "chrome/renderer/localized_error.h"
29 #include "chrome/renderer/render_process.h" 29 #include "chrome/renderer/render_process.h"
30 #include "chrome/renderer/user_script_slave.h" 30 #include "chrome/renderer/user_script_slave.h"
31 #include "chrome/renderer/visitedlink_slave.h" 31 #include "chrome/renderer/visitedlink_slave.h"
32 #include "chrome/renderer/webmediaplayer_delegate_impl.h" 32 #include "chrome/renderer/webmediaplayer_delegate_impl.h"
33 #include "chrome/renderer/webplugin_delegate_proxy.h" 33 #include "chrome/renderer/webplugin_delegate_proxy.h"
34 #include "chrome/renderer/webworker_context_proxy.h"
34 #include "net/base/escape.h" 35 #include "net/base/escape.h"
35 #include "net/base/net_errors.h" 36 #include "net/base/net_errors.h"
36 #include "skia/ext/bitmap_platform_device.h" 37 #include "skia/ext/bitmap_platform_device.h"
37 #include "skia/ext/image_operations.h" 38 #include "skia/ext/image_operations.h"
38 #include "webkit/default_plugin/default_plugin_shared.h" 39 #include "webkit/default_plugin/default_plugin_shared.h"
39 #include "webkit/glue/dom_operations.h" 40 #include "webkit/glue/dom_operations.h"
40 #include "webkit/glue/dom_serializer.h" 41 #include "webkit/glue/dom_serializer.h"
41 #include "webkit/glue/glue_accessibility.h" 42 #include "webkit/glue/glue_accessibility.h"
42 #include "webkit/glue/password_form.h" 43 #include "webkit/glue/password_form.h"
43 #include "webkit/glue/plugins/plugin_list.h" 44 #include "webkit/glue/plugins/plugin_list.h"
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 if (status == default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) { 1941 if (status == default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) {
1941 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); 1942 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status));
1942 } 1943 }
1943 } 1944 }
1944 #else 1945 #else
1945 // TODO(port): plugins current not supported 1946 // TODO(port): plugins current not supported
1946 NOTIMPLEMENTED(); 1947 NOTIMPLEMENTED();
1947 #endif 1948 #endif
1948 } 1949 }
1949 1950
1951 WebWorkerContextProxy* RenderView::CreateWebWorker() {
1952 return new WebWorkerContextProxyImpl(this);
1953 }
1954
1950 void RenderView::OpenURL(WebView* webview, const GURL& url, 1955 void RenderView::OpenURL(WebView* webview, const GURL& url,
1951 const GURL& referrer, 1956 const GURL& referrer,
1952 WindowOpenDisposition disposition) { 1957 WindowOpenDisposition disposition) {
1953 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition)); 1958 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition));
1954 } 1959 }
1955 1960
1956 // We are supposed to get a single call to Show for a newly created RenderView 1961 // We are supposed to get a single call to Show for a newly created RenderView
1957 // that was created via RenderView::CreateWebView. So, we wait until this 1962 // that was created via RenderView::CreateWebView. So, we wait until this
1958 // point to dispatch the ShowView message. 1963 // point to dispatch the ShowView message.
1959 // 1964 //
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 #endif // OS_WIN 2861 #endif // OS_WIN
2857 } 2862 }
2858 2863
2859 MessageLoop* RenderView::GetMessageLoopForIO() { 2864 MessageLoop* RenderView::GetMessageLoopForIO() {
2860 // Assume that we have only one RenderThread in the process and the owner loop 2865 // Assume that we have only one RenderThread in the process and the owner loop
2861 // of RenderThread is an IO message loop. 2866 // of RenderThread is an IO message loop.
2862 if (g_render_thread) 2867 if (g_render_thread)
2863 return g_render_thread->owner_loop(); 2868 return g_render_thread->owner_loop();
2864 return NULL; 2869 return NULL;
2865 } 2870 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/renderer.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698