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

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

Issue 155015: Make workers functional on OSX and Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
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 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1857 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); 1857 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status));
1858 } 1858 }
1859 } 1859 }
1860 #else 1860 #else
1861 // TODO(port): plugins current not supported 1861 // TODO(port): plugins current not supported
1862 NOTIMPLEMENTED(); 1862 NOTIMPLEMENTED();
1863 #endif 1863 #endif
1864 } 1864 }
1865 1865
1866 WebWorker* RenderView::CreateWebWorker(WebWorkerClient* client) { 1866 WebWorker* RenderView::CreateWebWorker(WebWorkerClient* client) {
1867 #if defined(OS_WIN)
1868 return new WebWorkerProxy(client, RenderThread::current(), routing_id_); 1867 return new WebWorkerProxy(client, RenderThread::current(), routing_id_);
1869 #else
1870 // TODO(port): out of process workers
1871 NOTIMPLEMENTED();
1872 return NULL;
1873 #endif
1874 } 1868 }
1875 1869
1876 void RenderView::OpenURL(WebView* webview, const GURL& url, 1870 void RenderView::OpenURL(WebView* webview, const GURL& url,
1877 const GURL& referrer, 1871 const GURL& referrer,
1878 WindowOpenDisposition disposition) { 1872 WindowOpenDisposition disposition) {
1879 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition)); 1873 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition));
1880 } 1874 }
1881 1875
1882 void RenderView::DidContentsSizeChange(WebWidget* webwidget, 1876 void RenderView::DidContentsSizeChange(WebWidget* webwidget,
1883 int new_width, 1877 int new_width,
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3029 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3023 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3030 } 3024 }
3031 3025
3032 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3026 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3033 DCHECK(frame); 3027 DCHECK(frame);
3034 if (print_helper_.get() == NULL) { 3028 if (print_helper_.get() == NULL) {
3035 print_helper_.reset(new PrintWebViewHelper(this)); 3029 print_helper_.reset(new PrintWebViewHelper(this));
3036 } 3030 }
3037 print_helper_->Print(frame, script_initiated); 3031 print_helper_->Print(frame, script_initiated);
3038 } 3032 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698