本文整理汇总了C++中webcore::Settings::rssSniffingEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ Settings::rssSniffingEnabled方法的具体用法?C++ Settings::rssSniffingEnabled怎么用?C++ Settings::rssSniffingEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webcore::Settings
的用法示例。
在下文中一共展示了Settings::rssSniffingEnabled方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
// This is a special URL for Android. Query the Java InputStream
// for data and send to WebCore
WebRequest::WebRequest(WebUrlLoaderClient* loader, const WebResourceRequest& webResourceRequest, UrlInterceptResponse* intercept)
: m_urlLoader(loader)
, m_interceptResponse(intercept)
, m_url(webResourceRequest.url())
, m_userAgent(webResourceRequest.userAgent())
, m_loadState(Created)
, m_authRequestCount(0)
, m_cacheMode(0)
, m_runnableFactory(this)
, m_wantToPause(false)
, m_isPaused(false)
//SAMSUNG_CHANGES >>
, m_ShouldSniffFeed(false)
, m_isMainResource(false)
, m_isMainFrame(false)
//SAMSUNG_CHANGES <<
, m_isSync(false)
{
//SAMSUNG_CHANGES >>
WebCore::Settings* settings = m_urlLoader->frame()->page()?m_urlLoader->frame()->page()->settings():NULL;
if(settings){
m_rssSniffingEnabled = settings->rssSniffingEnabled();
} else {
m_rssSniffingEnabled = false;
}
//SAMSUNG_CHANGES <<
}
示例2: gurl
WebRequest::WebRequest(WebUrlLoaderClient* loader, const WebResourceRequest& webResourceRequest)
: m_urlLoader(loader)
, m_url(webResourceRequest.url())
, m_userAgent(webResourceRequest.userAgent())
, m_loadState(Created)
, m_authRequestCount(0)
, m_cacheMode(0)
, m_runnableFactory(this)
, m_wantToPause(false)
, m_isPaused(false)
//SAMSUNG_CHANGES >>
, m_ShouldSniffFeed(false)
, m_isMainResource(false)
, m_isMainFrame(false)
//SAMSUNG_CHANGES <<
, m_isSync(false)
{
GURL gurl(m_url);
m_request = new net::URLRequest(gurl, this);
m_request->SetExtraRequestHeaders(webResourceRequest.requestHeaders());
m_request->SetExtraRequestHeaderByName(kXRequestedWithHeader, s_packageName.Get().value, false);
m_request->set_referrer(webResourceRequest.referrer());
m_request->set_method(webResourceRequest.method());
m_request->set_load_flags(webResourceRequest.loadFlags());
//SAMSUNG_CHANGES >>
WebCore::Settings* settings = m_urlLoader->frame()->page()?m_urlLoader->frame()->page()->settings():NULL;
if(settings){
m_rssSniffingEnabled = settings->rssSniffingEnabled();
} else {
m_rssSniffingEnabled = false;
}
//SAMSUNG_CHANGES <<
}