Update to Chromium revision 102269.

- Disable use of clang on Mac for the time being.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@292 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-09-23 00:16:03 +00:00
parent 32402b2287
commit 0fc3af0dbb
26 changed files with 253 additions and 213 deletions

View File

@@ -20,8 +20,8 @@ MSVC_POP_WARNING();
#include "cef_context.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
#include "base/string16.h"
#include "net/base/mime_util.h"
@@ -55,13 +55,6 @@ bool IsProtocolSupportedForMedia(const GURL& url) {
return false;
}
std::string GetWebKitLocale() {
const CefSettings& settings = _Context->settings();
if (settings.locale.length > 0)
return CefString(&settings.locale);
return "en-US";
}
void InitializeTextEncoding() {
WebCore::UTF8Encoding();
}
@@ -73,14 +66,6 @@ v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame)
return WebCore::V8Proxy::context(core_frame);
}
void CloseIdleConnections() {
// Used in benchmarking, Ignored for CEF.
}
void SetCacheMode(bool enabled) {
// Used in benchmarking, Ignored for CEF.
}
void ClearCache()
{
if (WebCore::memoryCache()->disabled())
@@ -109,10 +94,6 @@ std::string BuildUserAgent(bool mimic_windows) {
return webkit_glue::BuildUserAgentHelper(mimic_windows, product_version);
}
bool IsSingleProcess() {
return true;
}
#if defined(OS_LINUX)
int MatchFontWithFallback(const std::string& face, bool bold,
bool italic, int charset) {
@@ -125,10 +106,6 @@ bool GetFontTable(int fd, uint32_t table, uint8_t* output,
}
#endif
void EnableSpdy(bool enable) {
// Used in benchmarking, Ignored for CEF.
}
// Adapted from Chromium's BufferedResourceHandler::ShouldDownload
bool ShouldDownload(const std::string& content_disposition,
const std::string& mime_type)
@@ -180,7 +157,7 @@ bool ShouldDownload(const std::string& content_disposition,
if (!plugins.empty()) {
std::vector<webkit::WebPluginInfo>::const_iterator it = plugins.begin();
for (; it != plugins.end(); ++it) {
if (webkit::IsPluginEnabled(*it))
if (webkit_glue::IsPluginEnabled(*it))
return false;
}
}
@@ -188,4 +165,8 @@ bool ShouldDownload(const std::string& content_disposition,
return true;
}
bool IsPluginEnabled(const webkit::WebPluginInfo& plugin) {
return true;
}
} // namespace webkit_glue