Protect WebRTC code in content/renderer

When compiling in Debug mode Win7/MSVS 2010 using
GYP_DEFINES="enable_webrtc=0 component=shared_library"
the compilation fails. This CL ensures these files are
not included when enable_webrtc=0.

BUG=284083
TEST=local compile.

Review URL: https://chromiumcodereview.appspot.com/23749003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222015 0039d316-1c4b-4281-b951-d872f2087c98
parent 689ff336
......@@ -22,7 +22,6 @@
#include "content/renderer/browser_plugin/browser_plugin.h"
#include "content/renderer/browser_plugin/browser_plugin_manager.h"
#include "content/renderer/internal_document_state_data.h"
#include "content/renderer/media/rtc_peer_connection_handler.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
#include "content/renderer/renderer_webapplicationcachehost_impl.h"
......@@ -46,6 +45,10 @@
#include "third_party/WebKit/public/web/WebView.h"
#include "webkit/child/weburlresponse_extradata_impl.h"
#if defined(ENABLE_WEBRTC)
#include "content/renderer/media/rtc_peer_connection_handler.h"
#endif
using WebKit::WebDataSource;
using WebKit::WebDocument;
using WebKit::WebFrame;
......
......@@ -100,7 +100,6 @@
#include "content/renderer/media/media_stream_impl.h"
#include "content/renderer/media/midi_dispatcher.h"
#include "content/renderer/media/render_media_log.h"
#include "content/renderer/media/rtc_peer_connection_handler.h"
#include "content/renderer/media/video_capture_impl_manager.h"
#include "content/renderer/media/webmediaplayer_impl.h"
#include "content/renderer/media/webmediaplayer_ms.h"
......@@ -249,6 +248,10 @@
#include "content/renderer/pepper/plugin_module.h"
#endif
#if defined(ENABLE_WEBRTC)
#include "content/renderer/media/rtc_peer_connection_handler.h"
#endif
using WebKit::WebAXObject;
using WebKit::WebApplicationCacheHost;
using WebKit::WebApplicationCacheHostClient;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment