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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 23749003: Protect WebRTC code in content/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/child/appcache/appcache_dispatcher.h" 10 #include "content/child/appcache/appcache_dispatcher.h"
11 #include "content/child/quota_dispatcher.h" 11 #include "content/child/quota_dispatcher.h"
12 #include "content/child/request_extra_data.h" 12 #include "content/child/request_extra_data.h"
13 #include "content/common/socket_stream_handle_data.h" 13 #include "content/common/socket_stream_handle_data.h"
14 #include "content/common/swapped_out_messages.h" 14 #include "content/common/swapped_out_messages.h"
15 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
16 #include "content/public/common/content_constants.h" 16 #include "content/public/common/content_constants.h"
17 #include "content/public/common/content_switches.h" 17 #include "content/public/common/content_switches.h"
18 #include "content/public/common/url_constants.h" 18 #include "content/public/common/url_constants.h"
19 #include "content/public/renderer/content_renderer_client.h" 19 #include "content/public/renderer/content_renderer_client.h"
20 #include "content/public/renderer/document_state.h" 20 #include "content/public/renderer/document_state.h"
21 #include "content/public/renderer/navigation_state.h" 21 #include "content/public/renderer/navigation_state.h"
22 #include "content/renderer/browser_plugin/browser_plugin.h" 22 #include "content/renderer/browser_plugin/browser_plugin.h"
23 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 23 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
24 #include "content/renderer/internal_document_state_data.h" 24 #include "content/renderer/internal_document_state_data.h"
25 #if defined(ENABLE_WEBRTC)
jamesr 2013/09/06 22:39:57 move this include out below the rest of the block
kjellander_chromium 2013/09/09 09:26:09 Done.
25 #include "content/renderer/media/rtc_peer_connection_handler.h" 26 #include "content/renderer/media/rtc_peer_connection_handler.h"
27 #endif
26 #include "content/renderer/render_thread_impl.h" 28 #include "content/renderer/render_thread_impl.h"
27 #include "content/renderer/render_view_impl.h" 29 #include "content/renderer/render_view_impl.h"
28 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 30 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
29 #include "content/renderer/websharedworker_proxy.h" 31 #include "content/renderer/websharedworker_proxy.h"
30 #include "net/base/net_errors.h" 32 #include "net/base/net_errors.h"
31 #include "net/http/http_util.h" 33 #include "net/http/http_util.h"
32 #include "third_party/WebKit/public/platform/WebString.h" 34 #include "third_party/WebKit/public/platform/WebString.h"
33 #include "third_party/WebKit/public/platform/WebURL.h" 35 #include "third_party/WebKit/public/platform/WebURL.h"
34 #include "third_party/WebKit/public/platform/WebURLError.h" 36 #include "third_party/WebKit/public/platform/WebURLError.h"
35 #include "third_party/WebKit/public/platform/WebURLResponse.h" 37 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 859
858 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, 860 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame,
859 int arb_robustness_status_code) { 861 int arb_robustness_status_code) {
860 render_view_->Send(new ViewHostMsg_DidLose3DContext( 862 render_view_->Send(new ViewHostMsg_DidLose3DContext(
861 GURL(frame->top()->document().securityOrigin().toString()), 863 GURL(frame->top()->document().securityOrigin().toString()),
862 THREE_D_API_TYPE_WEBGL, 864 THREE_D_API_TYPE_WEBGL,
863 arb_robustness_status_code)); 865 arb_robustness_status_code));
864 } 866 }
865 867
866 } // namespace content 868 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698