From d7a094b3d7b51df5e122bfc0e3a7f3af1c02d7c0 Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Sat, 30 Apr 2011 10:04:15 +0000 Subject: [PATCH] On behalf of the Chromium team, present version 11.0.696.57 (new stable version) Patch updates from: George Liaskos Security: 6887828f-0229-11e0-b84d-00262d5ed8ee --- www/chromium/Makefile | 6 +- www/chromium/distinfo | 4 +- www/chromium/files/patch-app__app_base.gypi | 24 +++-- .../patch-app__gfx__gl__gl_context_egl.cc | 14 +-- www/chromium/files/patch-base__logging.h | 39 -------- www/chromium/files/patch-base__process_util.h | 26 ++++-- .../patch-chrome__app__chrome_exe_main_gtk.cc | 15 ++- ...-chrome__browser__browser_about_handler.cc | 26 +++--- ...le_path_watcher__file_path_watcher_stub.cc | 11 --- .../patch-chrome__browser__memory_details.cc | 18 ++-- ...enderer_host__render_sandbox_host_linux.cc | 15 --- ...wser__ui__views__accessible_view_helper.cc | 11 --- ...owser__ui__views__accessible_view_helper.h | 20 ---- ..._browser__ui__views__download_item_view.cc | 16 ++-- ..._ui__views__extensions__extension_popup.cc | 26 ++++-- ...browser__ui__views__frame__browser_view.cc | 26 +++--- .../files/patch-chrome__chrome_browser.gypi | 50 +++------- .../files/patch-chrome__chrome_tests.gypi | 73 +++++++++------ ...ch-chrome__common__gpu_messages_internal.h | 20 ++-- ...rome__common__service_process_util_posix.h | 28 ++++++ .../files/patch-chrome__gpu__gpu_channel.cc | 11 --- ...ch-chrome__renderer__mock_render_thread.cc | 20 ---- ...tch-chrome__renderer__mock_render_thread.h | 11 --- ...__renderer__pepper_plugin_delegate_impl.cc | 16 ++-- ...me__renderer__webplugin_delegate_pepper.cc | 56 ++++++------ ...ome__renderer__webplugin_delegate_proxy.cc | 16 ++-- ...ch-chrome__test__testing_browser_process.h | 27 ++++-- ...t__browser__browser_child_process_host.cc} | 4 +- ...ntent__browser__child_process_launcher.cc} | 4 +- ...enderer_host__mock_render_process_host.cc} | 4 +- ...__renderer_host__render_message_filter.cc} | 14 +-- ...enderer_host__render_sandbox_host_linux.cc | 24 +++++ ...r__renderer_host__render_widget_helper.cc} | 4 +- ...er__renderer_host__render_widget_helper.h} | 4 +- ...erer_host__render_widget_host_unittest.cc} | 4 +- ...t__browser__tab_contents__tab_contents.cc} | 4 +- ...ch-content__browser__zygote_host_linux.cc} | 33 ++++--- ...tch-content__browser__zygote_host_linux.h} | 4 +- ...ch-content__browser__zygote_main_linux.cc} | 18 ++-- ...le_path_watcher__file_path_watcher_stub.cc | 27 ++++++ .../files/patch-content__content_browser.gypi | 26 ++++++ www/chromium/files/patch-gfx__scoped_image.h | 20 ---- www/chromium/files/patch-media__media.gyp | 14 ++- .../files/patch-net__base__net_util.cc | 9 +- ...-net__proxy__proxy_config_service_linux.cc | 34 +++---- .../files/patch-ppapi__proxy__image_data.cc | 11 --- ...atch-ppapi__proxy__ppb_image_data_proxy.cc | 11 +++ ...hromium__SQLiteFileSystemChromiumPosix.cpp | 11 --- .../patch-third_party__ffmpeg__ffmpeg.gyp | 53 ++++++++++- .../files/patch-third_party__icu__icu.gyp | 19 +++- ...ty__icu__public__common__unicode__ptypes.h | 11 +++ ...__icu__public__common__unicode__umachine.h | 11 --- ...bjingle__source__talk__base__nethelpers.cc | 20 ++++ ..._party__skia__include__core__SkPreConfig.h | 22 ++--- ...tools__gyp__pylib__gyp__generator__make.py | 30 +++--- ...tch-ui__base__resource__resource_bundle.cc | 22 ++--- www/chromium/files/patch-ui__gfx__image.cc | 74 +++++++++++++++ www/chromium/files/patch-ui__gfx__image.h | 20 ++++ ...h => patch-ui__gfx__native_widget_types.h} | 4 +- .../files/patch-v8__src__platform-freebsd.cc | 91 ------------------- .../patch-webkit__build__webkit_version.py | 37 -------- www/chromium/pkg-plist | 1 + 62 files changed, 670 insertions(+), 654 deletions(-) delete mode 100644 www/chromium/files/patch-base__logging.h delete mode 100644 www/chromium/files/patch-chrome__browser__file_path_watcher__file_path_watcher_stub.cc delete mode 100644 www/chromium/files/patch-chrome__browser__renderer_host__render_sandbox_host_linux.cc delete mode 100644 www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.cc delete mode 100644 www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.h create mode 100644 www/chromium/files/patch-chrome__common__service_process_util_posix.h delete mode 100644 www/chromium/files/patch-chrome__gpu__gpu_channel.cc delete mode 100644 www/chromium/files/patch-chrome__renderer__mock_render_thread.cc delete mode 100644 www/chromium/files/patch-chrome__renderer__mock_render_thread.h rename www/chromium/files/{patch-chrome__browser__browser_child_process_host.cc => patch-content__browser__browser_child_process_host.cc} (61%) rename www/chromium/files/{patch-chrome__browser__child_process_launcher.cc => patch-content__browser__child_process_launcher.cc} (95%) rename www/chromium/files/{patch-chrome__browser__renderer_host__mock_render_process_host.cc => patch-content__browser__renderer_host__mock_render_process_host.cc} (68%) rename www/chromium/files/{patch-chrome__browser__renderer_host__render_message_filter.cc => patch-content__browser__renderer_host__render_message_filter.cc} (56%) create mode 100644 www/chromium/files/patch-content__browser__renderer_host__render_sandbox_host_linux.cc rename www/chromium/files/{patch-chrome__browser__renderer_host__render_widget_helper.cc => patch-content__browser__renderer_host__render_widget_helper.cc} (72%) rename www/chromium/files/{patch-chrome__browser__renderer_host__render_widget_helper.h => patch-content__browser__renderer_host__render_widget_helper.h} (85%) rename www/chromium/files/{patch-chrome__browser__renderer_host__render_widget_host_unittest.cc => patch-content__browser__renderer_host__render_widget_host_unittest.cc} (62%) rename www/chromium/files/{patch-chrome__browser__tab_contents__tab_contents.cc => patch-content__browser__tab_contents__tab_contents.cc} (78%) rename www/chromium/files/{patch-chrome__browser__zygote_host_linux.cc => patch-content__browser__zygote_host_linux.cc} (74%) rename www/chromium/files/{patch-chrome__browser__zygote_host_linux.h => patch-content__browser__zygote_host_linux.h} (72%) rename www/chromium/files/{patch-chrome__browser__zygote_main_linux.cc => patch-content__browser__zygote_main_linux.cc} (80%) create mode 100644 www/chromium/files/patch-content__common__file_path_watcher__file_path_watcher_stub.cc create mode 100644 www/chromium/files/patch-content__content_browser.gypi delete mode 100644 www/chromium/files/patch-gfx__scoped_image.h delete mode 100644 www/chromium/files/patch-ppapi__proxy__image_data.cc create mode 100644 www/chromium/files/patch-ppapi__proxy__ppb_image_data_proxy.cc delete mode 100644 www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__sql__chromium__SQLiteFileSystemChromiumPosix.cpp create mode 100644 www/chromium/files/patch-third_party__icu__public__common__unicode__ptypes.h delete mode 100644 www/chromium/files/patch-third_party__icu__public__common__unicode__umachine.h create mode 100644 www/chromium/files/patch-third_party__libjingle__source__talk__base__nethelpers.cc create mode 100644 www/chromium/files/patch-ui__gfx__image.cc create mode 100644 www/chromium/files/patch-ui__gfx__image.h rename www/chromium/files/{patch-gfx__native_widget_types.h => patch-ui__gfx__native_widget_types.h} (66%) delete mode 100644 www/chromium/files/patch-v8__src__platform-freebsd.cc delete mode 100644 www/chromium/files/patch-webkit__build__webkit_version.py diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 9cb5445e4e93..ec6259da6b0a 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -7,8 +7,7 @@ PORTNAME= chromium DISTVERSIONPREFIX= courgette-redacted- -DISTVERSION= 10.0.648.205 -PORTREVISION= 1 +DISTVERSION= 11.0.696.57 CATEGORIES= www MASTER_SITES= http://download.goodking.org/downloads/ \ ftp://rene-ladan.nl/pub/distfiles/ \ @@ -32,7 +31,8 @@ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ asound.2:${PORTSDIR}/audio/alsa-lib \ freetype.9:${PORTSDIR}/print/freetype2 \ nss3.1:${PORTSDIR}/security/nss \ - gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring + gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring \ + ibus.2:${PORTSDIR}/textproc/ibus RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins \ ${LOCALBASE}/lib/X11/fonts/Droid/fonts.dir:${PORTSDIR}/x11-fonts/droid-fonts-ttf diff --git a/www/chromium/distinfo b/www/chromium/distinfo index 0365b05771db..f66433c1d35d 100644 --- a/www/chromium/distinfo +++ b/www/chromium/distinfo @@ -1,2 +1,2 @@ -SHA256 (chromium-courgette-redacted-10.0.648.205.tar.xz) = f29e33a2ebd7447db622186a42923216ccc493e16420bcd456fcf2fc044e32e9 -SIZE (chromium-courgette-redacted-10.0.648.205.tar.xz) = 113637616 +SHA256 (chromium-courgette-redacted-11.0.696.57.tar.xz) = c269ecfd398d9a3bff6ea9af514e6090a50844ed9ce8e35a3045d4bc46621769 +SIZE (chromium-courgette-redacted-11.0.696.57.tar.xz) = 115117312 diff --git a/www/chromium/files/patch-app__app_base.gypi b/www/chromium/files/patch-app__app_base.gypi index d0d0feeed462..80dae77d650f 100644 --- a/www/chromium/files/patch-app__app_base.gypi +++ b/www/chromium/files/patch-app__app_base.gypi @@ -1,15 +1,14 @@ ---- app/app_base.gypi.orig 2011-04-13 10:01:07.000000000 +0200 -+++ app/app_base.gypi 2011-04-17 22:15:49.000000000 +0200 -@@ -232,7 +232,7 @@ - 'surface/io_surface_support_mac.cc', +--- app/app_base.gypi.orig 2011-04-21 23:19:08.067560122 +0300 ++++ app/app_base.gypi 2011-04-21 23:19:47.444560550 +0300 +@@ -234,6 +234,7 @@ 'surface/io_surface_support_mac.h', 'surface/transport_dib.h', -- 'surface/transport_dib_linux.cc', -+ 'surface/transport_dib_freebsd.cc', + 'surface/transport_dib_linux.cc', ++ 'surface/transport_dib_freebsd.cc', 'surface/transport_dib_mac.cc', 'surface/transport_dib_win.cc', 'win/iat_patch_function.cc', -@@ -335,7 +335,7 @@ +@@ -334,7 +335,7 @@ ['exclude', '^win/*'], ], }], @@ -18,7 +17,7 @@ 'sources': [ 'gfx/gl/gl_context_egl.cc', 'gfx/gl/gl_context_egl.h', -@@ -363,7 +363,6 @@ +@@ -362,11 +363,15 @@ 'link_settings': { 'libraries': [ '-lX11', @@ -26,3 +25,12 @@ ], }, }, + }], ++ ['OS=="freebsd" or OS=="openbsd"', { ++ 'sources!': [ ++ 'surface/transport_dib_linux.cc', ++ ] ++ }], + ['OS=="mac"', { + 'link_settings': { + 'libraries': [ diff --git a/www/chromium/files/patch-app__gfx__gl__gl_context_egl.cc b/www/chromium/files/patch-app__gfx__gl__gl_context_egl.cc index 2504f387af0e..e55713272ed9 100644 --- a/www/chromium/files/patch-app__gfx__gl__gl_context_egl.cc +++ b/www/chromium/files/patch-app__gfx__gl__gl_context_egl.cc @@ -1,20 +1,20 @@ ---- app/gfx/gl/gl_context_egl.cc.orig 2011-01-26 10:30:13.000000000 +0100 -+++ app/gfx/gl/gl_context_egl.cc 2011-01-30 13:55:55.000000000 +0100 -@@ -4,7 +4,7 @@ - - #include +--- app/gfx/gl/gl_context_egl.cc.orig 2011-04-16 11:01:07.000000000 +0300 ++++ app/gfx/gl/gl_context_egl.cc 2011-04-25 21:52:13.940147280 +0300 +@@ -13,7 +13,7 @@ + // it brings in #defines that cause conflicts. + #include "app/gfx/gl/gl_bindings.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) extern "C" { #include } -@@ -82,7 +82,7 @@ +@@ -85,7 +85,7 @@ if (initialized) return true; -#ifdef OS_LINUX -+#ifdef OS_LINUX || defined(OS_FREEBSD) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) EGLNativeDisplayType native_display = XOpenDisplay(NULL); #else EGLNativeDisplayType native_display = EGL_DEFAULT_DISPLAY; diff --git a/www/chromium/files/patch-base__logging.h b/www/chromium/files/patch-base__logging.h deleted file mode 100644 index 94cc3acaa6ba..000000000000 --- a/www/chromium/files/patch-base__logging.h +++ /dev/null @@ -1,39 +0,0 @@ ---- ./base/logging.h.orig 2010-12-16 02:11:49.000000000 +0100 -+++ ./base/logging.h 2010-12-20 20:15:08.000000000 +0100 -@@ -141,6 +141,18 @@ - // There is also the special severity of DFATAL, which logs FATAL in - // debug mode, ERROR in normal mode. - -+// XXX better comment -- must be before we use << and in global namespace -+// These functions are provided as a convenience for logging, which is where we -+// use streams (it is against Google style to use streams in other places). It -+// is designed to allow you to emit non-ASCII Unicode strings to the log file, -+// which is normally ASCII. It is relatively slow, so try not to use it for -+// common cases. Non-ASCII characters will be converted to UTF-8 by these -+// operators. -+std::ostream& operator<<(std::ostream& out, const wchar_t* wstr); -+inline std::ostream& operator<<(std::ostream& out, const std::wstring& wstr) { -+ return out << wstr.c_str(); -+} -+ - namespace logging { - - // Where to record logging output? A flat file and/or system debug log via -@@ -857,17 +869,6 @@ - - } // namespace logging - --// These functions are provided as a convenience for logging, which is where we --// use streams (it is against Google style to use streams in other places). It --// is designed to allow you to emit non-ASCII Unicode strings to the log file, --// which is normally ASCII. It is relatively slow, so try not to use it for --// common cases. Non-ASCII characters will be converted to UTF-8 by these --// operators. --std::ostream& operator<<(std::ostream& out, const wchar_t* wstr); --inline std::ostream& operator<<(std::ostream& out, const std::wstring& wstr) { -- return out << wstr.c_str(); --} -- - // The NOTIMPLEMENTED() macro annotates codepaths which have - // not been implemented yet. - // diff --git a/www/chromium/files/patch-base__process_util.h b/www/chromium/files/patch-base__process_util.h index 6554558d1af9..9315b5589b92 100644 --- a/www/chromium/files/patch-base__process_util.h +++ b/www/chromium/files/patch-base__process_util.h @@ -1,12 +1,12 @@ ---- base/process_util.h.orig 2011-03-21 07:38:40.133112029 +0200 -+++ base/process_util.h 2011-03-21 07:51:24.970111144 +0200 +--- base/process_util.h.orig 2011-04-15 11:01:37.000000000 +0300 ++++ base/process_util.h 2011-04-15 21:36:54.331640613 +0300 @@ -28,6 +28,10 @@ #include #endif +#if defined(OS_FREEBSD) +struct kinfo_proc; -+#endif ++#endif /* defined(OS_FREEBSD) */ + #include #include @@ -17,20 +17,26 @@ -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) - // Returns the ID for the parent of the given process. - ProcessId GetParentProcessId(ProcessHandle process); + // Returns the path to the executable of the given process. + FilePath GetProcessExecutablePath(ProcessHandle process); -@@ -172,7 +176,9 @@ - // CPU-related ticks. Returns -1 on parse error. +@@ -170,13 +174,14 @@ // Exposed for testing. int ParseProcStatCPU(const std::string& input); -+#endif -+#if defined(OS_LINUX) ++#elif defined(OS_LINUX) static const char kAdjustOOMScoreSwitch[] = "--adjust-oom-score"; // This adjusts /proc/process/oom_adj so the Linux OOM killer will prefer -@@ -439,7 +445,7 @@ + // certain process types over others. The range for the adjustment is + // [-17,15], with [0,15] being user accessible. + bool AdjustOOMScore(ProcessId process, int score); +-#endif ++#endif /* defined(OS_LINUX) || defined(OS_FREEBSD) */ + + #if defined(OS_POSIX) + // Returns the ID for the parent of the given process. +@@ -439,7 +444,7 @@ #if defined(OS_WIN) HANDLE snapshot_; bool started_iteration_; diff --git a/www/chromium/files/patch-chrome__app__chrome_exe_main_gtk.cc b/www/chromium/files/patch-chrome__app__chrome_exe_main_gtk.cc index 53abcf6499fc..a4a9b652211c 100644 --- a/www/chromium/files/patch-chrome__app__chrome_exe_main_gtk.cc +++ b/www/chromium/files/patch-chrome__app__chrome_exe_main_gtk.cc @@ -1,5 +1,5 @@ ---- ./chrome/app/chrome_exe_main_gtk.cc.orig 2010-12-16 02:11:51.000000000 +0100 -+++ ./chrome/app/chrome_exe_main_gtk.cc 2010-12-20 20:15:08.000000000 +0100 +--- chrome/app/chrome_exe_main_gtk.cc.orig 2011-04-16 11:01:37.000000000 +0300 ++++ chrome/app/chrome_exe_main_gtk.cc 2011-04-25 20:11:07.659145645 +0300 @@ -3,7 +3,7 @@ // found in the LICENSE file. @@ -9,7 +9,7 @@ #include "chrome/browser/first_run/first_run.h" #endif -@@ -19,11 +19,11 @@ +@@ -19,16 +19,18 @@ extern "C" { int ChromeMain(int argc, const char** argv); @@ -23,7 +23,14 @@ } int main(int argc, const char** argv) { -@@ -36,7 +36,7 @@ + base::EnableTerminationOnHeapCorruption(); ++#if !defined(OS_FREEBSD) + base::EnableTerminationOnOutOfMemory(); ++#endif + + // NOTE(willchan): One might ask why this call is done here rather than in + // process_util_linux.cc with the definition of +@@ -36,7 +38,7 @@ // dependency on TCMalloc. Really, we ought to have our allocator shim code // implement this EnableTerminationOnOutOfMemory() function. Whateverz. This // works for now. diff --git a/www/chromium/files/patch-chrome__browser__browser_about_handler.cc b/www/chromium/files/patch-chrome__browser__browser_about_handler.cc index d7b0139edb5e..7f3a7b87e817 100644 --- a/www/chromium/files/patch-chrome__browser__browser_about_handler.cc +++ b/www/chromium/files/patch-chrome__browser__browser_about_handler.cc @@ -1,24 +1,24 @@ ---- chrome/browser/browser_about_handler.cc.orig 2011-01-06 10:01:46.000000000 +0100 -+++ chrome/browser/browser_about_handler.cc 2011-01-09 20:16:04.000000000 +0100 -@@ -74,7 +74,7 @@ - #include "chrome/browser/zygote_host_linux.h" - #elif defined(OS_MACOSX) - #include "chrome/browser/ui/cocoa/about_ipc_dialog.h" +--- chrome/browser/browser_about_handler.cc.orig 2011-04-15 11:01:47.000000000 +0300 ++++ chrome/browser/browser_about_handler.cc 2011-04-15 21:51:24.189641560 +0300 +@@ -71,7 +71,7 @@ + #include "chrome/browser/chromeos/login/wizard_controller.h" + #include "chrome/browser/chromeos/version_loader.h" + #include "content/browser/zygote_host_linux.h" -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_FREEBSD) - #include "chrome/browser/zygote_host_linux.h" + #include "content/browser/zygote_host_linux.h" #endif -@@ -127,7 +127,7 @@ - const char kNetInternalsPath[] = "net-internals"; +@@ -126,7 +126,7 @@ const char kPluginsPath[] = "plugins"; + const char kSyncInternalsPath[] = "sync-internals"; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) const char kLinuxProxyConfigPath[] = "linux-proxy-config"; const char kSandboxPath[] = "sandbox"; #endif -@@ -159,7 +159,7 @@ +@@ -160,7 +160,7 @@ kTcmallocPath, kTermsPath, kVersionPath, @@ -27,7 +27,7 @@ kSandboxPath, #endif #if defined(OS_CHROMEOS) -@@ -549,7 +549,7 @@ +@@ -648,7 +648,7 @@ return data; } @@ -36,10 +36,10 @@ std::string AboutLinuxProxyConfig() { std::string data; data.append("\n"); -@@ -796,7 +796,7 @@ - } else if (path == kTermsPath) { +@@ -863,7 +863,7 @@ response = ResourceBundle::GetSharedInstance().GetRawDataResource( IDR_TERMS_HTML).as_string(); + #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) } else if (path == kLinuxProxyConfigPath) { diff --git a/www/chromium/files/patch-chrome__browser__file_path_watcher__file_path_watcher_stub.cc b/www/chromium/files/patch-chrome__browser__file_path_watcher__file_path_watcher_stub.cc deleted file mode 100644 index 407bcfa0b005..000000000000 --- a/www/chromium/files/patch-chrome__browser__file_path_watcher__file_path_watcher_stub.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- chrome/browser/file_path_watcher/file_path_watcher_stub.cc.orig 2011-03-20 22:02:04.296736175 +0200 -+++ chrome/browser/file_path_watcher/file_path_watcher_stub.cc 2011-03-20 22:02:04.454738659 +0200 -@@ -9,7 +9,7 @@ - - class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { - public: -- virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate) { -+ virtual bool Watch(const FilePath& path, FilePathWatcher::Delegate* delegate) { - return false; - } - }; diff --git a/www/chromium/files/patch-chrome__browser__memory_details.cc b/www/chromium/files/patch-chrome__browser__memory_details.cc index 06a750e7a46b..4e76aa9e1faa 100644 --- a/www/chromium/files/patch-chrome__browser__memory_details.cc +++ b/www/chromium/files/patch-chrome__browser__memory_details.cc @@ -1,15 +1,15 @@ ---- ./chrome/browser/memory_details.cc.orig 2010-12-16 02:11:58.000000000 +0100 -+++ ./chrome/browser/memory_details.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -19,7 +19,7 @@ - #include "chrome/common/url_constants.h" - #include "grit/chromium_strings.h" +--- chrome/browser/memory_details.cc.orig 2011-04-15 11:01:47.000000000 +0300 ++++ chrome/browser/memory_details.cc 2011-04-15 22:31:00.350640234 +0300 +@@ -25,7 +25,7 @@ + #include "grit/generated_resources.h" + #include "ui/base/l10n/l10n_util.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) - #include "chrome/browser/zygote_host_linux.h" - #include "chrome/browser/renderer_host/render_sandbox_host_linux.h" + #include "content/browser/zygote_host_linux.h" + #include "content/browser/renderer_host/render_sandbox_host_linux.h" #endif -@@ -101,7 +101,7 @@ +@@ -109,7 +109,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); @@ -18,7 +18,7 @@ const pid_t zygote_pid = ZygoteHost::GetInstance()->pid(); const pid_t sandbox_helper_pid = RenderSandboxHostLinux::GetInstance()->pid(); #endif -@@ -179,7 +179,7 @@ +@@ -236,7 +236,7 @@ } } diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__render_sandbox_host_linux.cc b/www/chromium/files/patch-chrome__browser__renderer_host__render_sandbox_host_linux.cc deleted file mode 100644 index 9f2e228aadea..000000000000 --- a/www/chromium/files/patch-chrome__browser__renderer_host__render_sandbox_host_linux.cc +++ /dev/null @@ -1,15 +0,0 @@ ---- ./chrome/browser/renderer_host/render_sandbox_host_linux.cc.orig 2010-12-16 02:11:57.000000000 +0100 -+++ ./chrome/browser/renderer_host/render_sandbox_host_linux.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -660,7 +660,12 @@ - // inherit some sockets. With PF_UNIX+SOCK_DGRAM, it can call sendmsg to send - // a datagram to any (abstract) socket on the same system. With - // SOCK_SEQPACKET, this is prevented. -+#if defined(OS_FREEBSD) -+ if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) != 0) -+ CHECK(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == 0); -+#else - CHECK(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) == 0); -+#endif - - renderer_socket_ = fds[0]; - const int browser_socket = fds[1]; diff --git a/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.cc b/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.cc deleted file mode 100644 index 0434c61bb811..000000000000 --- a/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- ./chrome/browser/ui/views/accessible_view_helper.cc.orig 2010-12-16 02:11:56.000000000 +0100 -+++ ./chrome/browser/ui/views/accessible_view_helper.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -21,7 +21,7 @@ - if (!accessibility_event_router_->AddViewTree(view_tree_, profile)) - view_tree_ = NULL; - --#if defined(OS_LINUX) -+#if defined(TOOLKIT_USES_GTK) - GtkWidget* widget = view_tree->GetWidget()->GetNativeView(); - widget_helper_.reset(new AccessibleWidgetHelper(widget, profile)); - #endif diff --git a/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.h b/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.h deleted file mode 100644 index 0b1d2cfd58ad..000000000000 --- a/www/chromium/files/patch-chrome__browser__ui__views__accessible_view_helper.h +++ /dev/null @@ -1,20 +0,0 @@ ---- chrome/browser/ui/views/accessible_view_helper.h.orig 2011-01-26 10:30:51.000000000 +0100 -+++ chrome/browser/ui/views/accessible_view_helper.h 2011-01-30 14:03:17.000000000 +0100 -@@ -15,7 +15,7 @@ - #include "chrome/browser/accessibility_events.h" - #include "gfx/native_widget_types.h" - --#if defined(OS_LINUX) -+#if defined(TOOLKIT_USES_GTK) - #include "chrome/browser/ui/gtk/accessible_widget_helper_gtk.h" - #endif - -@@ -73,7 +73,7 @@ - std::string window_title_; - std::vector managed_views_; - --#if defined(OS_LINUX) -+#if defined(TOOLKIT_USES_GTK) - scoped_ptr widget_helper_; - #endif - diff --git a/www/chromium/files/patch-chrome__browser__ui__views__download_item_view.cc b/www/chromium/files/patch-chrome__browser__ui__views__download_item_view.cc index 692528093ec1..678955062c1a 100644 --- a/www/chromium/files/patch-chrome__browser__ui__views__download_item_view.cc +++ b/www/chromium/files/patch-chrome__browser__ui__views__download_item_view.cc @@ -1,20 +1,20 @@ ---- ./chrome/browser/ui/views/download_item_view.cc.orig 2010-12-16 02:11:56.000000000 +0100 -+++ ./chrome/browser/ui/views/download_item_view.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -259,7 +259,7 @@ +--- chrome/browser/ui/views/download_item_view.cc.orig 2011-04-15 11:01:46.000000000 +0300 ++++ chrome/browser/ui/views/download_item_view.cc 2011-04-15 22:56:06.858645022 +0300 +@@ -261,7 +261,7 @@ // Extract the file extension (if any). FilePath filename(download->target_name()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) - std::wstring extension = base::SysNativeMBToWide(filename.Extension()); + string16 extension = WideToUTF16(base::SysNativeMBToWide( + filename.Extension())); #else - std::wstring extension = filename.Extension(); -@@ -268,7 +268,7 @@ +@@ -271,7 +271,7 @@ // Remove leading '.' if (extension.length() > 0) extension = extension.substr(1); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_FREEBSD) - std::wstring rootname = - base::SysNativeMBToWide(filename.RemoveExtension().value()); + string16 rootname = WideToUTF16(base::SysNativeMBToWide( + filename.RemoveExtension().value())); #else diff --git a/www/chromium/files/patch-chrome__browser__ui__views__extensions__extension_popup.cc b/www/chromium/files/patch-chrome__browser__ui__views__extensions__extension_popup.cc index b0075ad23df2..37d397a1d1ba 100644 --- a/www/chromium/files/patch-chrome__browser__ui__views__extensions__extension_popup.cc +++ b/www/chromium/files/patch-chrome__browser__ui__views__extensions__extension_popup.cc @@ -1,20 +1,26 @@ ---- ./chrome/browser/ui/views/extensions/extension_popup.cc.orig 2010-12-16 02:11:56.000000000 +0100 -+++ ./chrome/browser/ui/views/extensions/extension_popup.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -25,7 +25,7 @@ - #include "views/window/window.h" +--- chrome/browser/ui/views/extensions/extension_popup.cc.orig 2011-04-15 11:01:45.000000000 +0300 ++++ chrome/browser/ui/views/extensions/extension_popup.cc 2011-04-15 23:02:00.445641973 +0300 +@@ -1,4 +1,4 @@ +-// Copyright (c) 2011 The Chromium Authors. All rights reserved. ++f// Copyright (c) 2011 The Chromium Authors. All rights reserved. + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. +@@ -23,7 +23,7 @@ + #include "views/widget/root_view.h" + #include "views/window/window.h" -#if defined(OS_LINUX) +#if defined(TOOLKIT_GTK) #include "views/widget/widget_gtk.h" #endif -@@ -108,7 +108,7 @@ +@@ -94,7 +94,7 @@ + // The bubble chrome requires a separate window, so construct it here. - if (BUBBLE_CHROME == popup_chrome_) { - gfx::NativeView native_window = frame->GetNativeView(); + gfx::NativeView native_window = frame->GetNativeView(); -#if defined(OS_LINUX) +#if defined(TOOLKIT_GTK) - border_widget_ = new views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW); - static_cast(border_widget_)->MakeTransparent(); - static_cast(border_widget_)->make_transient_to_parent(); + border_widget_ = new views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW); + static_cast(border_widget_)->MakeTransparent(); + static_cast(border_widget_)->make_transient_to_parent(); diff --git a/www/chromium/files/patch-chrome__browser__ui__views__frame__browser_view.cc b/www/chromium/files/patch-chrome__browser__ui__views__frame__browser_view.cc index 90f6e539ea54..973589e9d3ee 100644 --- a/www/chromium/files/patch-chrome__browser__ui__views__frame__browser_view.cc +++ b/www/chromium/files/patch-chrome__browser__ui__views__frame__browser_view.cc @@ -1,5 +1,5 @@ ---- chrome/browser/ui/views/frame/browser_view.cc.orig 2011-01-26 10:30:50.000000000 +0100 -+++ chrome/browser/ui/views/frame/browser_view.cc 2011-01-30 14:10:27.000000000 +0100 +--- chrome/browser/ui/views/frame/browser_view.cc.orig 2011-04-15 11:01:45.000000000 +0300 ++++ chrome/browser/ui/views/frame/browser_view.cc 2011-04-16 18:06:47.910070832 +0300 @@ -4,7 +4,7 @@ #include "chrome/browser/ui/views/frame/browser_view.h" @@ -9,25 +9,25 @@ #include #endif -@@ -87,7 +87,7 @@ - #include "chrome/browser/aeropeek_manager.h" +@@ -90,7 +90,7 @@ #include "chrome/browser/jumplist_win.h" + #include "ui/base/message_box_win.h" #include "ui/base/view_prop.h" -#elif defined(OS_LINUX) +#elif defined(TOOLKIT_GTK) #include "chrome/browser/ui/views/accelerator_table_gtk.h" #include "views/window/hit_test.h" #include "views/window/window_gtk.h" -@@ -1130,7 +1130,7 @@ +@@ -1162,7 +1162,7 @@ string16 message = l10n_util::GetStringUTF16(message_id); - app::win::MessageBox(GetNativeHandle(), message, title, - MB_OK | MB_ICONWARNING | MB_TOPMOST); + ui::MessageBox(GetNativeHandle(), message, title, + MB_OK | MB_ICONWARNING | MB_TOPMOST); -#elif defined(OS_LINUX) +#elif defined(TOOLKIT_GTK) std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); std::string message = l10n_util::GetStringUTF8(message_id); GtkWidget* dialog = gtk_message_dialog_new(GetNativeHandle(), -@@ -1224,7 +1224,7 @@ +@@ -1256,7 +1256,7 @@ views::FocusManager* focus_manager = GetFocusManager(); DCHECK(focus_manager); @@ -36,16 +36,16 @@ // Views and WebKit use different tables for GdkEventKey -> views::KeyEvent // conversion. We need to use View's conversion table here to keep consistent // behavior with views::FocusManager::OnKeyEvent() method. -@@ -1271,7 +1271,7 @@ +@@ -1303,7 +1303,7 @@ return false; // Executing the command may cause |this| object to be destroyed. -#if defined(OS_LINUX) && !defined(TOUCH_UI) +#if (defined(OS_LINUX) || defined(OS_FREEBSD)) && !defined(TOUCH_UI) - if (browser_->IsReservedCommand(id) && !event.match_edit_command) { + if (browser_->IsReservedCommandOrKey(id, event) && + !event.match_edit_command) { #else - if (browser_->IsReservedCommand(id)) { -@@ -1287,7 +1287,7 @@ +@@ -1320,7 +1320,7 @@ } void BrowserView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { @@ -54,7 +54,7 @@ views::Window* window = GetWidget()->GetWindow(); if (window && event.os_event && !event.skip_in_browser) static_cast(window)->HandleKeyboardEvent(event.os_event); -@@ -2230,7 +2230,7 @@ +@@ -2247,7 +2247,7 @@ #endif // No need to invoke SetFullscreen for linux as this code is executed // once we're already fullscreen on linux. diff --git a/www/chromium/files/patch-chrome__chrome_browser.gypi b/www/chromium/files/patch-chrome__chrome_browser.gypi index 29059cfd4550..24e6d70a9a95 100644 --- a/www/chromium/files/patch-chrome__chrome_browser.gypi +++ b/www/chromium/files/patch-chrome__chrome_browser.gypi @@ -1,36 +1,7 @@ ---- chrome/chrome_browser.gypi.orig 2011-04-13 10:01:59.000000000 +0200 -+++ chrome/chrome_browser.gypi 2011-04-17 22:24:15.000000000 +0200 -@@ -1237,7 +1237,7 @@ - 'browser/favicon_service.h', - 'browser/file_path_watcher/file_path_watcher.cc', - 'browser/file_path_watcher/file_path_watcher.h', -- 'browser/file_path_watcher/file_path_watcher_inotify.cc', -+ #'browser/file_path_watcher/file_path_watcher_inotify.cc', - 'browser/file_path_watcher/file_path_watcher_mac.cc', - 'browser/file_path_watcher/file_path_watcher_win.cc', - 'browser/file_select_helper.cc', -@@ -1266,8 +1266,8 @@ - 'browser/geolocation/empty_device_data_provider.h', - 'browser/geolocation/gateway_data_provider_common.cc', - 'browser/geolocation/gateway_data_provider_common.h', -- 'browser/geolocation/gateway_data_provider_linux.cc', -- 'browser/geolocation/gateway_data_provider_linux.h', -+ #'browser/geolocation/gateway_data_provider_linux.cc', -+ #'browser/geolocation/gateway_data_provider_linux.h', - 'browser/geolocation/gateway_data_provider_win.cc', - 'browser/geolocation/gateway_data_provider_win.h', - 'browser/geolocation/geolocation_content_settings_map.cc', -@@ -1307,7 +1307,7 @@ - 'browser/geolocation/wifi_data_provider_corewlan_mac.mm', - 'browser/geolocation/wifi_data_provider_common_win.cc', - 'browser/geolocation/wifi_data_provider_common_win.h', -- 'browser/geolocation/wifi_data_provider_linux.cc', -+ #'browser/geolocation/wifi_data_provider_linux.cc', - 'browser/geolocation/wifi_data_provider_linux.h', - 'browser/geolocation/wifi_data_provider_mac.cc', - 'browser/geolocation/wifi_data_provider_mac.h', -@@ -3621,7 +3621,7 @@ - ['include', '^browser/chromeos/dom_ui/login/'], +--- chrome/chrome_browser.gypi.orig 2011-04-16 11:02:00.000000000 +0300 ++++ chrome/chrome_browser.gypi 2011-04-21 21:49:54.625558694 +0300 +@@ -3455,7 +3455,7 @@ + ['exclude', '^browser/views/tab_contents/tab_contents_view_gtk.h'], ], }], - ['OS=="linux"', { @@ -38,7 +9,7 @@ 'dependencies': [ '../build/linux/system.gyp:dbus-glib', '../build/linux/system.gyp:gconf', -@@ -3631,12 +3631,6 @@ +@@ -3465,12 +3465,6 @@ '../build/linux/system.gyp:x11', '../third_party/undoview/undoview.gyp:undoview', ], @@ -51,7 +22,7 @@ 'sources!': [ 'browser/ui/views/extensions/extension_view.cc', 'browser/ui/views/extensions/extension_view.h', -@@ -4294,7 +4288,7 @@ +@@ -4118,7 +4112,7 @@ ], }], # GTK build only @@ -60,3 +31,12 @@ 'sources/': [ ['include', '^browser/printing/print_dialog_gtk.cc'], ['include', '^browser/printing/print_dialog_gtk.h'], +@@ -4196,7 +4190,7 @@ + }, + ], + }], +- ['OS=="linux" and gcc_version==45', { ++ ['(OS=="linux" or OS=="freebsd") and gcc_version==45', { + # Avoid gcc 4.5 miscompilation of template_url.cc + # as per http://crbug.com/41887 + 'cflags': [ diff --git a/www/chromium/files/patch-chrome__chrome_tests.gypi b/www/chromium/files/patch-chrome__chrome_tests.gypi index 3cfc69e0b577..d0b068221ec5 100644 --- a/www/chromium/files/patch-chrome__chrome_tests.gypi +++ b/www/chromium/files/patch-chrome__chrome_tests.gypi @@ -1,7 +1,7 @@ ---- chrome/chrome_tests.gypi.orig 2011-01-06 10:02:02.000000000 +0100 -+++ chrome/chrome_tests.gypi 2011-01-09 21:00:16.000000000 +0100 -@@ -141,7 +141,7 @@ - 'test/unit/chrome_test_suite.h', +--- chrome/chrome_tests.gypi.orig 2011-04-16 19:33:32.144068169 +0300 ++++ chrome/chrome_tests.gypi 2011-04-16 19:33:47.813071073 +0300 +@@ -185,7 +185,7 @@ + '../content/common/notification_observer_mock.h', ], 'conditions': [ - ['OS=="linux"', { @@ -9,16 +9,16 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', -@@ -191,7 +191,7 @@ - 'test/ui/ui_test_suite.h', - ], - 'conditions': [ +@@ -239,7 +239,7 @@ + 'chrome.gyp:crash_service', # run time dependency + ], + }], - ['OS=="linux"', { + ['OS=="linux" or OS=="freebsd"', { 'dependencies': [ '../build/linux/system.gyp:gtk', ], -@@ -215,7 +215,7 @@ +@@ -279,7 +279,7 @@ 'test/unit/run_all_unittests.cc', ], 'conditions': [ @@ -27,7 +27,7 @@ 'dependencies': [ # Needed for the following #include chain: # test/unit/run_all_unittests.cc -@@ -261,7 +261,7 @@ +@@ -325,7 +325,7 @@ }, }, },], @@ -36,7 +36,7 @@ 'dependencies': [ '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', ], -@@ -341,7 +341,7 @@ +@@ -398,14 +398,14 @@ 'test/unit/chrome_test_suite.h', ], 'conditions': [ @@ -45,7 +45,15 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', -@@ -555,12 +555,12 @@ + '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', + ], + }], +- ['OS=="linux" and toolkit_views==0', { ++ ['(OS=="linux" or OS=="freebsd") and toolkit_views==0', { + 'sources!': [ + # TODO(port) + 'browser/ui/views/bookmarks/bookmark_bar_view_test.cc', +@@ -606,12 +606,12 @@ '../webkit/webkit.gyp:copy_npapi_test_plugin', ], }], @@ -60,8 +68,8 @@ 'sources!': [ 'browser/process_singleton_linux_uitest.cc', ], -@@ -720,7 +720,7 @@ - 'test/webdriver/commands/webdriver_command.cc', +@@ -782,7 +782,7 @@ + 'test/webdriver/commands/webelement_commands.cc', ], 'conditions': [ - ['OS=="linux"', { @@ -69,7 +77,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', -@@ -1749,7 +1749,7 @@ +@@ -1893,7 +1893,7 @@ ['exclude', '^browser/chromeos/'], ], }], @@ -78,17 +86,17 @@ 'conditions': [ ['gcc_version==44', { # Avoid gcc 4.4 strict aliasing issues in stl_tree.h when -@@ -1786,7 +1786,7 @@ +@@ -1930,7 +1930,7 @@ 'sources!': [ 'browser/printing/print_job_unittest.cc', ], - }, { # else: OS != "linux" + }, { # else: OS != "linux" and OS != "freebsd" 'sources!': [ - 'browser/gtk/tabs/tab_renderer_gtk_unittest.cc', + 'browser/ui/gtk/tabs/tab_renderer_gtk_unittest.cc', 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc', -@@ -2265,7 +2265,7 @@ - 'browser/renderer_host/test/render_view_host_manager_browsertest.cc', +@@ -2420,7 +2420,7 @@ + '../content/browser/renderer_host/render_view_host_manager_browsertest.cc', ], }], - ['OS=="linux"', { @@ -96,7 +104,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', -@@ -2428,7 +2428,7 @@ +@@ -2589,7 +2589,7 @@ }, }, },], @@ -105,7 +113,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', -@@ -2529,7 +2529,7 @@ +@@ -2690,7 +2690,7 @@ }, }, },], @@ -114,7 +122,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', ], -@@ -2566,7 +2566,7 @@ +@@ -2727,7 +2727,7 @@ }, }, },], @@ -123,7 +131,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', -@@ -2603,7 +2603,7 @@ +@@ -2764,7 +2764,7 @@ 'test/tab_switching/tab_switching_test.cc', ], 'conditions': [ @@ -132,7 +140,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', -@@ -2637,7 +2637,7 @@ +@@ -2798,7 +2798,7 @@ 'test/memory_test/memory_test.cc', ], 'conditions': [ @@ -141,7 +149,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', -@@ -2790,7 +2790,7 @@ +@@ -2961,7 +2961,7 @@ 'browser/sync/util/data_encryption_unittest.cc', ], }], @@ -150,7 +158,7 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', -@@ -2908,7 +2908,7 @@ +@@ -3075,7 +3075,7 @@ ], 'conditions': [ # Plugin code. @@ -159,7 +167,7 @@ 'dependencies': [ 'plugin', ], -@@ -2916,7 +2916,7 @@ +@@ -3083,7 +3083,7 @@ 'plugin', ], }], @@ -168,7 +176,16 @@ 'dependencies': [ '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', -@@ -3143,7 +3143,7 @@ +@@ -3228,7 +3228,7 @@ + # See comments about "xcode_settings" elsewhere in this file. + 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, + }], +- ['OS=="linux"', { ++ ['OS=="linux" or OS=="freebsd"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + '../build/linux/system.gyp:nss', +@@ -3311,7 +3311,7 @@ 'test/perf/url_parse_perftest.cc', ], 'conditions': [ diff --git a/www/chromium/files/patch-chrome__common__gpu_messages_internal.h b/www/chromium/files/patch-chrome__common__gpu_messages_internal.h index 477a4493fcb1..0a774a33610b 100644 --- a/www/chromium/files/patch-chrome__common__gpu_messages_internal.h +++ b/www/chromium/files/patch-chrome__common__gpu_messages_internal.h @@ -1,11 +1,11 @@ ---- ./chrome/common/gpu_messages_internal.h.orig 2010-12-16 02:12:13.000000000 +0100 -+++ ./chrome/common/gpu_messages_internal.h 2010-12-20 20:15:08.000000000 +0100 -@@ -82,7 +82,7 @@ - IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, - GPUInfo /* GPU logging stats */) +--- chrome/common/gpu_messages_internal.h.orig 2011-04-15 11:02:02.000000000 +0300 ++++ chrome/common/gpu_messages_internal.h 2011-04-16 19:43:55.218070312 +0300 +@@ -142,7 +142,7 @@ + // Response from GPU to a GpuMsg_Synchronize message. + IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - // Get the XID for a view ID. - IPC_SYNC_MESSAGE_CONTROL1_1(GpuHostMsg_GetViewXID, - gfx::NativeViewId, /* view */ +-#if defined(OS_LINUX) && !defined(TOUCH_UI) ++#if (defined(OS_LINUX) || defined (OS_FREEBSD)) && !defined(TOUCH_UI) + // Resize the window that is being drawn into. It's important that this + // resize be synchronized with the swapping of the front and back buffers. + IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_ResizeXID, diff --git a/www/chromium/files/patch-chrome__common__service_process_util_posix.h b/www/chromium/files/patch-chrome__common__service_process_util_posix.h new file mode 100644 index 000000000000..0e53b245177a --- /dev/null +++ b/www/chromium/files/patch-chrome__common__service_process_util_posix.h @@ -0,0 +1,28 @@ +--- chrome/common/service_process_util_posix.h.orig 2011-04-21 20:57:02.534558581 +0300 ++++ chrome/common/service_process_util_posix.h 2011-04-21 20:57:16.326558123 +0300 +@@ -14,10 +14,10 @@ + #include "base/message_pump_libevent.h" + #include "base/scoped_ptr.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + #include "chrome/common/multi_process_lock.h" + MultiProcessLock* TakeServiceRunningLock(bool waiting); +-#endif // OS_LINUX ++#endif // OS_LINUX || OS_FREEBSD + + #if defined(OS_MACOSX) + #include "base/mac/scoped_cftyperef.h" +@@ -65,10 +65,10 @@ + FilePathWatcher executable_watcher_; + ServiceProcessState* state_; + #endif // OS_MACOSX +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + scoped_ptr initializing_lock_; + scoped_ptr running_lock_; +-#endif // OS_LINUX ++#endif // OS_LINUX || OS_FREEBSD + scoped_ptr shut_down_monitor_; + base::MessagePumpLibevent::FileDescriptorWatcher watcher_; + int sockets_[2]; diff --git a/www/chromium/files/patch-chrome__gpu__gpu_channel.cc b/www/chromium/files/patch-chrome__gpu__gpu_channel.cc deleted file mode 100644 index 9a9ffa8efa5a..000000000000 --- a/www/chromium/files/patch-chrome__gpu__gpu_channel.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- chrome/gpu/gpu_channel.cc.orig 2011-01-26 10:30:52.000000000 +0100 -+++ chrome/gpu/gpu_channel.cc 2011-01-30 14:12:45.000000000 +0100 -@@ -139,7 +139,7 @@ - // offscreen rendering and the browser provides whichever platform specific - // "render target" the GpuCommandBufferStub targets. - handle = gfx::NativeViewFromId(view_id); --#elif defined(OS_LINUX) -+#elif defined(OS_LINUX) || defined(OS_FREEBSD) - // Ask the browser for the view's XID. - gpu_thread_->Send(new GpuHostMsg_GetViewXID(view_id, &handle)); - #elif defined(OS_MACOSX) diff --git a/www/chromium/files/patch-chrome__renderer__mock_render_thread.cc b/www/chromium/files/patch-chrome__renderer__mock_render_thread.cc deleted file mode 100644 index 7b23a646baf6..000000000000 --- a/www/chromium/files/patch-chrome__renderer__mock_render_thread.cc +++ /dev/null @@ -1,20 +0,0 @@ ---- ./chrome/renderer/mock_render_thread.cc.orig 2010-12-16 02:11:59.000000000 +0100 -+++ ./chrome/renderer/mock_render_thread.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -108,7 +108,7 @@ - IPC_MESSAGE_HANDLER(ViewHostMsg_AllocatePDFTransport, - OnAllocatePDFTransport) - #endif --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateTempFileForPrinting, - OnAllocateTempFileForPrinting) - IPC_MESSAGE_HANDLER(ViewHostMsg_TempFileForPrintingWritten, -@@ -156,7 +156,7 @@ - } - #endif - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - void MockRenderThread::OnAllocateTempFileForPrinting( - base::FileDescriptor* renderer_fd, - int* browser_fd) { diff --git a/www/chromium/files/patch-chrome__renderer__mock_render_thread.h b/www/chromium/files/patch-chrome__renderer__mock_render_thread.h deleted file mode 100644 index 258d19da3579..000000000000 --- a/www/chromium/files/patch-chrome__renderer__mock_render_thread.h +++ /dev/null @@ -1,11 +0,0 @@ ---- ./chrome/renderer/mock_render_thread.h.orig 2010-12-16 02:11:59.000000000 +0100 -+++ ./chrome/renderer/mock_render_thread.h 2010-12-20 20:15:08.000000000 +0100 -@@ -105,7 +105,7 @@ - base::SharedMemoryHandle* handle); - #endif - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, - int* browser_fd); - void OnTempFileForPrintingWritten(int browser_fd); diff --git a/www/chromium/files/patch-chrome__renderer__pepper_plugin_delegate_impl.cc b/www/chromium/files/patch-chrome__renderer__pepper_plugin_delegate_impl.cc index 53c5c333cb9c..d474644e3598 100644 --- a/www/chromium/files/patch-chrome__renderer__pepper_plugin_delegate_impl.cc +++ b/www/chromium/files/patch-chrome__renderer__pepper_plugin_delegate_impl.cc @@ -1,15 +1,15 @@ ---- chrome/renderer/pepper_plugin_delegate_impl.cc.orig 2011-03-23 00:45:32.195641203 +0200 -+++ chrome/renderer/pepper_plugin_delegate_impl.cc 2011-03-23 00:45:48.140640079 +0200 -@@ -48,7 +48,7 @@ - #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" +--- chrome/renderer/pepper_plugin_delegate_impl.cc.orig 2011-04-15 11:01:48.000000000 +0300 ++++ chrome/renderer/pepper_plugin_delegate_impl.cc 2011-04-16 20:34:00.435069120 +0300 +@@ -54,7 +54,7 @@ #include "webkit/plugins/ppapi/ppb_flash_impl.h" + #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_FREEBSD) - #include "chrome/common/render_messages.h" #include "chrome/renderer/render_thread.h" #endif -@@ -76,7 +76,7 @@ + +@@ -81,7 +81,7 @@ dib_(dib) { } @@ -18,7 +18,7 @@ // On Mac, we have to tell the browser to free the transport DIB. virtual ~PlatformImage2DImpl() { if (dib_.get()) { -@@ -94,7 +94,7 @@ +@@ -99,7 +99,7 @@ *byte_count = dib_->size(); #if defined(OS_WIN) return reinterpret_cast(dib_->handle()); @@ -27,7 +27,7 @@ return static_cast(dib_->handle().fd); #elif defined(OS_LINUX) return static_cast(dib_->handle()); -@@ -494,7 +494,7 @@ +@@ -499,7 +499,7 @@ uint32 buffer_size = width * height * 4; // Allocate the transport DIB and the PlatformCanvas pointing to it. diff --git a/www/chromium/files/patch-chrome__renderer__webplugin_delegate_pepper.cc b/www/chromium/files/patch-chrome__renderer__webplugin_delegate_pepper.cc index 5fc084fed516..34d58b3ea6b6 100644 --- a/www/chromium/files/patch-chrome__renderer__webplugin_delegate_pepper.cc +++ b/www/chromium/files/patch-chrome__renderer__webplugin_delegate_pepper.cc @@ -1,5 +1,5 @@ ---- ./chrome/renderer/webplugin_delegate_pepper.cc.orig 2010-12-16 02:11:59.000000000 +0100 -+++ ./chrome/renderer/webplugin_delegate_pepper.cc 2010-12-20 20:15:08.000000000 +0100 +--- chrome/renderer/webplugin_delegate_pepper.cc.orig 2011-04-15 11:01:48.000000000 +0300 ++++ chrome/renderer/webplugin_delegate_pepper.cc 2011-04-16 20:54:58.991069673 +0300 @@ -9,7 +9,7 @@ #include #include @@ -9,16 +9,16 @@ #include #endif -@@ -39,7 +39,7 @@ - #include "chrome/renderer/pepper_widget.h" - #include "chrome/renderer/render_thread.h" - #include "chrome/renderer/render_view.h" --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) +@@ -53,7 +53,7 @@ + #if defined(OS_MACOSX) + #include "base/mac/mac_util.h" + #include "base/mac/scoped_cftyperef.h" +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_FREEBSD) #include "chrome/renderer/renderer_sandbox_support_linux.h" - #endif - #include "chrome/renderer/webplugin_delegate_proxy.h" -@@ -463,7 +463,7 @@ + #include "printing/pdf_ps_metafile_cairo.h" + #elif defined(OS_WIN) +@@ -414,7 +414,7 @@ NPError NPMatchFontWithFallback(NPP instance, const NPFontDescription* description, NPFontID* id) { @@ -27,7 +27,7 @@ int fd = renderer_sandbox_support::MatchFontWithFallback( description->face, description->weight >= 700, description->italic, description->charset); -@@ -482,7 +482,7 @@ +@@ -433,7 +433,7 @@ uint32_t table, void* output, size_t* output_length) { @@ -36,7 +36,7 @@ bool rv = renderer_sandbox_support::GetFontTable( id, table, static_cast(output), output_length); return rv ? NPERR_NO_ERROR : NPERR_GENERIC_ERROR; -@@ -493,7 +493,7 @@ +@@ -444,7 +444,7 @@ } NPError NPDestroyFont(NPP instance, NPFontID id) { @@ -45,20 +45,20 @@ close(id); return NPERR_NO_ERROR; #else -@@ -1169,10 +1169,10 @@ +@@ -823,10 +823,10 @@ current_printer_dpi_ = printer_dpi; } } -#if defined (OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) ++#if defined (OS_LINUX) || defined(OS_FREEBSD) num_pages_ = num_pages; pdf_output_done_ = false; -#endif // (OS_LINUX) -+#endif // OS_LINUX || OS_FREEBSD ++#endif // (OS_LINUX) || (OS_FREEBSD) return num_pages; } -@@ -1198,7 +1198,7 @@ +@@ -852,7 +852,7 @@ unsigned char* pdf_output = NULL; int32 output_size = 0; NPPrintPageNumberRange page_range; @@ -67,19 +67,19 @@ // On Linux we will try and output all pages as PDF in the first call to // PrintPage. This is a temporary hack. // TODO(sanjeevr): Remove this hack and fix this by changing the print -@@ -1207,9 +1207,9 @@ +@@ -861,9 +861,9 @@ return pdf_output_done_; page_range.firstPageNumber = 0; page_range.lastPageNumber = num_pages_ - 1; -#else // defined(OS_LINUX) -+#else // defined(OS_LINUX) || defined(OS_FREEBSD) ++#else // !defined(OS_LINUX) && !defined(OS_FREEBSD) page_range.firstPageNumber = page_range.lastPageNumber = page_number; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_FREEBSD) NPError err = print_extensions->printPagesAsPDF(instance()->npp(), &page_range, 1, &pdf_output, &output_size); -@@ -1217,7 +1217,7 @@ +@@ -871,7 +871,7 @@ return false; bool ret = false; @@ -88,7 +88,7 @@ // On Linux we need to get the backing PdfPsMetafile and write the bits // directly. cairo_t* context = canvas->beginPlatformPaint(); -@@ -1370,10 +1370,10 @@ +@@ -1026,10 +1026,10 @@ current_printer_dpi_ = -1; #if defined(OS_MACOSX) last_printed_page_ = SkBitmap(); @@ -101,16 +101,16 @@ } WebPluginDelegatePepper::WebPluginDelegatePepper( -@@ -1384,10 +1384,10 @@ +@@ -1039,10 +1039,10 @@ + plugin_(NULL), instance_(instance), - nested_delegate_(NULL), current_printer_dpi_(-1), -#if defined (OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) ++#if defined (OS_LINUX) || defined(OS_FREEBSD) num_pages_(0), pdf_output_done_(false), -#endif // (OS_LINUX) -+#endif // OS_LINUX || OS_FREEBSD - #if defined(ENABLE_GPU) - command_buffer_(NULL), - method_factory3d_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), ++#endif // (OS_LINUX) || (OS_FREEBSD) + find_identifier_(-1), + current_choose_file_callback_(NULL), + current_choose_file_user_data_(NULL) { diff --git a/www/chromium/files/patch-chrome__renderer__webplugin_delegate_proxy.cc b/www/chromium/files/patch-chrome__renderer__webplugin_delegate_proxy.cc index 1bb81ae3f225..09a94a6f3bb6 100644 --- a/www/chromium/files/patch-chrome__renderer__webplugin_delegate_proxy.cc +++ b/www/chromium/files/patch-chrome__renderer__webplugin_delegate_proxy.cc @@ -5,7 +5,7 @@ }; -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) static void ReleaseTransportDIB(TransportDIB* dib) { if (dib) { IPC::Message* message = new ViewHostMsg_FreeTransportDIB(dib->id()); @@ -14,7 +14,7 @@ WebPluginDelegateProxy::~WebPluginDelegateProxy() { -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) // Ask the browser to release old TransportDIB objects for which no // PluginHostMsg_UpdateGeometry_ACK was ever received from the plugin // process. @@ -23,7 +23,7 @@ PluginMsg_UpdateGeometry_Param param; -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) param.ack_key = -1; #endif @@ -32,7 +32,7 @@ bool needs_background_store = transparent_; -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) // We don't support transparency under QuickDraw, and CoreGraphics // preserves transparency information (and does the compositing itself) // so plugins don't need access to the page background. @@ -41,7 +41,7 @@ void WebPluginDelegateProxy::ResetWindowlessBitmaps() { -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) DCHECK(!background_store_.get()); // The Mac TransportDIB implementation uses base::SharedMemory, which // cannot be disposed of if an in-flight UpdateGeometry message refers to @@ -50,13 +50,13 @@ scoped_ptr* canvas) { const size_t size = BitmapSizeForPluginRect(plugin_rect_); -#if defined(OS_POSIX) && !defined(OS_MACOSX) -+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) ++#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) && !defined(OS_FREEBSD) memory->reset(TransportDIB::Create(size, 0)); if (!memory->get()) return false; #endif -#if defined(OS_MACOSX) -+#if defined(OS_MACOSX) || defined(OS_OPENBSD) ++#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) TransportDIB::Handle handle; IPC::Message* msg = new ViewHostMsg_AllocTransportDIB(size, true, &handle); - if (!RenderThread::current()->Send(msg)) \ No newline at end of file + if (!RenderThread::current()->Send(msg)) diff --git a/www/chromium/files/patch-chrome__test__testing_browser_process.h b/www/chromium/files/patch-chrome__test__testing_browser_process.h index 73e471d1cf9f..d86647e47e9f 100644 --- a/www/chromium/files/patch-chrome__test__testing_browser_process.h +++ b/www/chromium/files/patch-chrome__test__testing_browser_process.h @@ -1,11 +1,20 @@ ---- ./chrome/test/testing_browser_process.h.orig 2010-12-16 02:12:11.000000000 +0100 -+++ ./chrome/test/testing_browser_process.h 2010-12-20 20:15:08.000000000 +0100 -@@ -52,7 +52,7 @@ - return NULL; - } +--- chrome/test/testing_browser_process.h.orig 2011-04-15 11:02:00.000000000 +0300 ++++ chrome/test/testing_browser_process.h 2011-04-16 21:00:37.080070649 +0300 +@@ -49,7 +49,7 @@ + + virtual IOThread* io_thread(); -#if defined(OS_LINUX) -+#if defined(USE_X11) - virtual base::Thread* background_x11_thread() { - return NULL; - } ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + virtual base::Thread* background_x11_thread(); + #endif + +@@ -120,7 +120,7 @@ + + virtual void CheckForInspectorFiles() {} + +-#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) ++#if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)) && !defined(OS_CHROMEOS) + virtual void StartAutoupdateTimer() {} + #endif + diff --git a/www/chromium/files/patch-chrome__browser__browser_child_process_host.cc b/www/chromium/files/patch-content__browser__browser_child_process_host.cc similarity index 61% rename from www/chromium/files/patch-chrome__browser__browser_child_process_host.cc rename to www/chromium/files/patch-content__browser__browser_child_process_host.cc index 31b7818f7618..c352cf149822 100644 --- a/www/chromium/files/patch-chrome__browser__browser_child_process_host.cc +++ b/www/chromium/files/patch-content__browser__browser_child_process_host.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/browser_child_process_host.cc.orig 2010-12-16 02:11:58.000000000 +0100 -+++ ./chrome/browser/browser_child_process_host.cc 2010-12-20 20:15:08.000000000 +0100 +--- ./content/browser/browser_child_process_host.cc.orig 2010-12-16 02:11:58.000000000 +0100 ++++ ./content/browser/browser_child_process_host.cc 2010-12-20 20:15:08.000000000 +0100 @@ -27,9 +27,9 @@ #include "chrome/common/result_codes.h" #include "chrome/installer/util/google_update_settings.h" diff --git a/www/chromium/files/patch-chrome__browser__child_process_launcher.cc b/www/chromium/files/patch-content__browser__child_process_launcher.cc similarity index 95% rename from www/chromium/files/patch-chrome__browser__child_process_launcher.cc rename to www/chromium/files/patch-content__browser__child_process_launcher.cc index e62f21488279..674e34af1675 100644 --- a/www/chromium/files/patch-chrome__browser__child_process_launcher.cc +++ b/www/chromium/files/patch-content__browser__child_process_launcher.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/child_process_launcher.cc.orig 2010-12-16 02:11:58.000000000 +0100 -+++ ./chrome/browser/child_process_launcher.cc 2010-12-20 20:15:08.000000000 +0100 +--- ./content/browser/child_process_launcher.cc.orig 2010-12-16 02:11:58.000000000 +0100 ++++ ./content/browser/child_process_launcher.cc 2010-12-20 20:15:08.000000000 +0100 @@ -20,7 +20,7 @@ #if defined(OS_WIN) #include "base/file_path.h" diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__mock_render_process_host.cc b/www/chromium/files/patch-content__browser__renderer_host__mock_render_process_host.cc similarity index 68% rename from www/chromium/files/patch-chrome__browser__renderer_host__mock_render_process_host.cc rename to www/chromium/files/patch-content__browser__renderer_host__mock_render_process_host.cc index 54fb3976a708..e5de334d4a2e 100644 --- a/www/chromium/files/patch-chrome__browser__renderer_host__mock_render_process_host.cc +++ b/www/chromium/files/patch-content__browser__renderer_host__mock_render_process_host.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/renderer_host/mock_render_process_host.cc.orig 2010-12-16 02:11:57.000000000 +0100 -+++ ./chrome/browser/renderer_host/mock_render_process_host.cc 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/renderer_host/mock_render_process_host.cc.orig 2010-12-16 02:11:57.000000000 +0100 ++++ content/browser/renderer_host/mock_render_process_host.cc 2010-12-20 20:15:08.000000000 +0100 @@ -106,7 +106,7 @@ DuplicateHandle(GetCurrentProcess(), dib_id.handle, GetCurrentProcess(), &duped, 0, TRUE, DUPLICATE_SAME_ACCESS); diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__render_message_filter.cc b/www/chromium/files/patch-content__browser__renderer_host__render_message_filter.cc similarity index 56% rename from www/chromium/files/patch-chrome__browser__renderer_host__render_message_filter.cc rename to www/chromium/files/patch-content__browser__renderer_host__render_message_filter.cc index af53ced27d9b..e74bce36b4dc 100644 --- a/www/chromium/files/patch-chrome__browser__renderer_host__render_message_filter.cc +++ b/www/chromium/files/patch-content__browser__renderer_host__render_message_filter.cc @@ -1,15 +1,15 @@ ---- chrome/browser/renderer_host/render_message_filter.cc.orig 2011-03-23 00:59:35.959798938 +0200 -+++ chrome/browser/renderer_host/render_message_filter.cc 2011-03-23 00:59:46.644644079 +0200 -@@ -375,7 +375,7 @@ - IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_GetDefaultPrintSettings, - OnGetDefaultPrintSettings) - IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ScriptedPrint, OnScriptedPrint) +--- content/browser/renderer_host/render_message_filter.cc.orig 2011-04-15 11:01:10.000000000 +0300 ++++ content/browser/renderer_host/render_message_filter.cc 2011-04-16 21:12:33.904069230 +0300 +@@ -416,7 +416,7 @@ + IPC_MESSAGE_HANDLER(ViewHostMsg_V8HeapStats, OnV8HeapStats) + IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) + IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ResolveProxy, OnResolveProxy) -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_FREEBSD) IPC_MESSAGE_HANDLER(ViewHostMsg_AllocTransportDIB, OnAllocTransportDIB) IPC_MESSAGE_HANDLER(ViewHostMsg_FreeTransportDIB, OnFreeTransportDIB) #endif -@@ -1196,7 +1196,7 @@ +@@ -1111,7 +1111,7 @@ HistogramSynchronizer::DeserializeHistogramList(sequence_number, histograms); } diff --git a/www/chromium/files/patch-content__browser__renderer_host__render_sandbox_host_linux.cc b/www/chromium/files/patch-content__browser__renderer_host__render_sandbox_host_linux.cc new file mode 100644 index 000000000000..690df96eb521 --- /dev/null +++ b/www/chromium/files/patch-content__browser__renderer_host__render_sandbox_host_linux.cc @@ -0,0 +1,24 @@ +--- content/browser/renderer_host/render_sandbox_host_linux.cc.orig 2011-04-16 11:01:10.000000000 +0300 ++++ content/browser/renderer_host/render_sandbox_host_linux.cc 2011-04-27 00:17:53.236984447 +0300 +@@ -13,6 +13,9 @@ + #include + #include + #include ++#if defined(OS_FREEBSD) ++#include ++#endif + + #include + +@@ -665,7 +668,11 @@ + // inherit some sockets. With PF_UNIX+SOCK_DGRAM, it can call sendmsg to send + // a datagram to any (abstract) socket on the same system. With + // SOCK_SEQPACKET, this is prevented. ++#if defined(OS_FREEBSD) && (__FreeBSD_version < 900030) ++ CHECK(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == 0); ++#else + CHECK(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) == 0); ++#endif + + renderer_socket_ = fds[0]; + const int browser_socket = fds[1]; diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.cc b/www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.cc similarity index 72% rename from www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.cc rename to www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.cc index c4690963f6d1..1a5da08da1fc 100644 --- a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.cc +++ b/www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/renderer_host/render_widget_helper.cc.orig 2010-12-16 02:11:57.000000000 +0100 -+++ ./chrome/browser/renderer_host/render_widget_helper.cc 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/renderer_host/render_widget_helper.cc.orig 2010-12-16 02:11:57.000000000 +0100 ++++ content/browser/renderer_host/render_widget_helper.cc 2010-12-20 20:15:08.000000000 +0100 @@ -58,7 +58,7 @@ // object, so we should not be destroyed unless pending_paints_ is empty! DCHECK(pending_paints_.empty()); diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.h b/www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.h similarity index 85% rename from www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.h rename to www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.h index 84496e0cfdd7..c53632ea7233 100644 --- a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_helper.h +++ b/www/chromium/files/patch-content__browser__renderer_host__render_widget_helper.h @@ -1,5 +1,5 @@ ---- ./chrome/browser/renderer_host/render_widget_helper.h.orig 2010-12-16 02:11:57.000000000 +0100 -+++ ./chrome/browser/renderer_host/render_widget_helper.h 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/renderer_host/render_widget_helper.h.orig 2010-12-16 02:11:57.000000000 +0100 ++++ content/browser/renderer_host/render_widget_helper.h 2010-12-20 20:15:08.000000000 +0100 @@ -110,7 +110,7 @@ const base::TimeDelta& max_delay, IPC::Message* msg); diff --git a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_host_unittest.cc b/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_unittest.cc similarity index 62% rename from www/chromium/files/patch-chrome__browser__renderer_host__render_widget_host_unittest.cc rename to www/chromium/files/patch-content__browser__renderer_host__render_widget_host_unittest.cc index 6556577d7e86..5b444a245454 100644 --- a/www/chromium/files/patch-chrome__browser__renderer_host__render_widget_host_unittest.cc +++ b/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_unittest.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/renderer_host/render_widget_host_unittest.cc.orig 2010-12-16 02:11:57.000000000 +0100 -+++ ./chrome/browser/renderer_host/render_widget_host_unittest.cc 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/renderer_host/render_widget_host_unittest.cc.orig 2010-12-16 02:11:57.000000000 +0100 ++++ content/browser/renderer_host/render_widget_host_unittest.cc 2010-12-20 20:15:08.000000000 +0100 @@ -407,7 +407,7 @@ // Tests setting custom background diff --git a/www/chromium/files/patch-chrome__browser__tab_contents__tab_contents.cc b/www/chromium/files/patch-content__browser__tab_contents__tab_contents.cc similarity index 78% rename from www/chromium/files/patch-chrome__browser__tab_contents__tab_contents.cc rename to www/chromium/files/patch-content__browser__tab_contents__tab_contents.cc index 5bf75d0412b4..60735beea513 100644 --- a/www/chromium/files/patch-chrome__browser__tab_contents__tab_contents.cc +++ b/www/chromium/files/patch-content__browser__tab_contents__tab_contents.cc @@ -1,5 +1,5 @@ ---- ./chrome/browser/tab_contents/tab_contents.cc.orig 2010-12-16 02:11:56.000000000 +0100 -+++ ./chrome/browser/tab_contents/tab_contents.cc 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/tab_contents/tab_contents.cc.orig 2010-12-16 02:11:56.000000000 +0100 ++++ content/browser/tab_contents/tab_contents.cc 2010-12-20 20:15:08.000000000 +0100 @@ -407,7 +407,7 @@ NotificationService::AllSources()); registrar_.Add(this, NotificationType::RENDER_WIDGET_HOST_DESTROYED, diff --git a/www/chromium/files/patch-chrome__browser__zygote_host_linux.cc b/www/chromium/files/patch-content__browser__zygote_host_linux.cc similarity index 74% rename from www/chromium/files/patch-chrome__browser__zygote_host_linux.cc rename to www/chromium/files/patch-content__browser__zygote_host_linux.cc index 8a8dc3d68415..eabdd8325aa0 100644 --- a/www/chromium/files/patch-chrome__browser__zygote_host_linux.cc +++ b/www/chromium/files/patch-content__browser__zygote_host_linux.cc @@ -1,6 +1,16 @@ ---- chrome/browser/zygote_host_linux.cc.orig 2011-03-23 00:55:52.194986092 +0200 -+++ chrome/browser/zygote_host_linux.cc 2011-03-23 00:56:55.886462243 +0200 -@@ -61,8 +61,16 @@ +--- content/browser/zygote_host_linux.cc.orig 2011-04-16 11:01:10.000000000 +0300 ++++ content/browser/zygote_host_linux.cc 2011-04-27 00:55:54.430982567 +0300 +@@ -8,6 +8,9 @@ + #include + #include + #include ++#if defined(OS_FREEBSD) ++#include ++#endif + + #include "base/command_line.h" + #include "base/eintr_wrapper.h" +@@ -61,8 +64,16 @@ } ZygoteHost::~ZygoteHost() { @@ -18,20 +28,19 @@ } // static -@@ -81,7 +89,12 @@ +@@ -81,7 +92,11 @@ cmd_line.AppendSwitchASCII(switches::kProcessType, switches::kZygoteProcess); int fds[2]; -+#if defined(OS_FREEBSD) -+ if (socketpair(PF_UNIX, SOCK_SEQPACKET, 0, fds) != 0) -+ CHECK(socketpair(PF_UNIX, SOCK_DGRAM, 0, fds) == 0); ++#if defined(OS_FREEBSD) && (__FreeBSD_version < 900030) ++ CHECK(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == 0); +#else CHECK(socketpair(PF_UNIX, SOCK_SEQPACKET, 0, fds) == 0); +#endif base::file_handle_mapping_vector fds_to_map; fds_to_map.push_back(std::make_pair(fds[1], 3)); -@@ -149,6 +162,7 @@ +@@ -149,6 +164,7 @@ // We need to look for it. // But first, wait for the zygote to tell us it's running. // The sending code is in chrome/browser/zygote_main_linux.cc. @@ -39,7 +48,7 @@ std::vector fds_vec; const int kExpectedLength = sizeof(kZygoteMagic); char buf[kExpectedLength]; -@@ -179,6 +193,7 @@ +@@ -179,6 +195,7 @@ // Reap the sandbox. ProcessWatcher::EnsureProcessGetsReaped(process); } @@ -47,7 +56,7 @@ } else { // Not using the SUID sandbox. pid_ = process; -@@ -245,9 +260,11 @@ +@@ -245,9 +262,11 @@ if (pid <= 0) return base::kNullProcessHandle; } @@ -60,7 +69,7 @@ return pid; } -@@ -285,6 +302,7 @@ +@@ -285,6 +304,7 @@ selinux_valid = true; } @@ -68,7 +77,7 @@ if (using_suid_sandbox_ && !selinux) { base::ProcessHandle sandbox_helper_process; std::vector adj_oom_score_cmdline; -@@ -302,6 +320,7 @@ +@@ -302,6 +322,7 @@ if (!base::AdjustOOMScore(pid, score)) PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid; } diff --git a/www/chromium/files/patch-chrome__browser__zygote_host_linux.h b/www/chromium/files/patch-content__browser__zygote_host_linux.h similarity index 72% rename from www/chromium/files/patch-chrome__browser__zygote_host_linux.h rename to www/chromium/files/patch-content__browser__zygote_host_linux.h index b67bb5f3b82c..edfc30d2c3f9 100644 --- a/www/chromium/files/patch-chrome__browser__zygote_host_linux.h +++ b/www/chromium/files/patch-content__browser__zygote_host_linux.h @@ -1,5 +1,5 @@ ---- ./chrome/browser/zygote_host_linux.h.orig 2010-12-16 02:11:58.000000000 +0100 -+++ ./chrome/browser/zygote_host_linux.h 2010-12-20 20:15:08.000000000 +0100 +--- content/browser/zygote_host_linux.h.orig 2010-12-16 02:11:58.000000000 +0100 ++++ content/browser/zygote_host_linux.h 2010-12-20 20:15:08.000000000 +0100 @@ -51,6 +51,9 @@ kCmdReap = 1, // Reap a renderer child. kCmdGetTerminationStatus = 2, // Check what happend to a child process. diff --git a/www/chromium/files/patch-chrome__browser__zygote_main_linux.cc b/www/chromium/files/patch-content__browser__zygote_main_linux.cc similarity index 80% rename from www/chromium/files/patch-chrome__browser__zygote_main_linux.cc rename to www/chromium/files/patch-content__browser__zygote_main_linux.cc index 4e09fbe2a60f..820d989fbdda 100644 --- a/www/chromium/files/patch-chrome__browser__zygote_main_linux.cc +++ b/www/chromium/files/patch-content__browser__zygote_main_linux.cc @@ -1,5 +1,5 @@ ---- chrome/browser/zygote_main_linux.cc.orig 2011-01-06 10:01:46.000000000 +0100 -+++ chrome/browser/zygote_main_linux.cc 2011-01-09 20:41:38.000000000 +0100 +--- content/browser/zygote_main_linux.cc.orig 2011-04-15 11:01:10.000000000 +0300 ++++ content/browser/zygote_main_linux.cc 2011-04-16 21:45:54.101069128 +0300 @@ -2,12 +2,18 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -19,7 +19,7 @@ #include #include #include -@@ -50,7 +56,7 @@ +@@ -51,7 +57,7 @@ #include "unicode/timezone.h" #if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \ @@ -28,7 +28,7 @@ // The seccomp sandbox is enabled on all ia32 and x86-64 processor as long as // we aren't using SELinux or clang. #define SECCOMP_SANDBOX -@@ -173,6 +179,11 @@ +@@ -174,6 +180,11 @@ case ZygoteHost::kCmdGetSandboxStatus: HandleGetSandboxStatus(fd, pickle, iter); return false; @@ -40,7 +40,7 @@ default: NOTREACHED(); break; -@@ -653,7 +664,7 @@ +@@ -648,7 +659,7 @@ SkiaFontConfigSetImplementation( new FontConfigIPC(kMagicSandboxIPCDescriptor)); @@ -49,11 +49,11 @@ // Previously, we required that the binary be non-readable. This causes the // kernel to mark the process as non-dumpable at startup. The thinking was // that, although we were putting the renderers into a PID namespace (with -@@ -679,6 +690,7 @@ +@@ -674,6 +685,7 @@ return false; } } -+#endif // !OS_FREEBSD - } else if (switches::SeccompSandboxEnabled()) { ++#endif // !OS_FREEBSD + } else if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableSeccompSandbox)) { PreSandboxInit(); - SkiaFontConfigSetImplementation( diff --git a/www/chromium/files/patch-content__common__file_path_watcher__file_path_watcher_stub.cc b/www/chromium/files/patch-content__common__file_path_watcher__file_path_watcher_stub.cc new file mode 100644 index 000000000000..76b1e69dfa9a --- /dev/null +++ b/www/chromium/files/patch-content__common__file_path_watcher__file_path_watcher_stub.cc @@ -0,0 +1,27 @@ +--- content/common/file_path_watcher/file_path_watcher_stub.cc.orig 2011-04-15 11:01:10.000000000 +0300 ++++ content/common/file_path_watcher/file_path_watcher_stub.cc 2011-04-19 22:34:32.353038862 +0300 +@@ -5,15 +5,21 @@ + // This file exists for Unix systems which don't have the inotify headers, and + // thus cannot build file_watcher_inotify.cc + +-#include "chrome/common/file_path_watcher/file_path_watcher.h" ++#include "content/common/file_path_watcher/file_path_watcher.h" + + class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { + public: ++ ++ virtual void Cancel() {} ++ + virtual bool Watch(const FilePath& path, +- FileWatcher::Delegate* delegate, +- base::MessageLoopProxy*) OVERRIDE { ++ FilePathWatcher::Delegate* delegate) OVERRIDE { + return false; + } ++ ++ protected: ++ ++ virtual void CancelOnMessageLoopThread() {} + }; + + FilePathWatcher::FilePathWatcher() { diff --git a/www/chromium/files/patch-content__content_browser.gypi b/www/chromium/files/patch-content__content_browser.gypi new file mode 100644 index 000000000000..e1c973da404f --- /dev/null +++ b/www/chromium/files/patch-content__content_browser.gypi @@ -0,0 +1,26 @@ +--- content/content_browser.gypi.orig 2011-04-22 01:35:50.895187096 +0300 ++++ content/content_browser.gypi 2011-04-22 01:43:35.628663558 +0300 +@@ -324,7 +324,7 @@ + ['OS=="win"', { + 'msvs_guid': '639DB58D-32C2-435A-A711-65A12F62E442', + }], +- ['OS=="linux"', { ++ ['OS=="linux" or OS=="freebsd"', { + 'dependencies': [ + '../build/linux/system.gyp:dbus-glib', + # For FcLangSetAdd call in render_sandbox_host_linux.cc +@@ -346,6 +346,14 @@ + ['exclude', '^browser/geolocation/wifi_data_provider_linux.h'], + ] + }], ++ ['OS=="freebsd" or OS=="openbsd"', { ++ 'sources/': [ ++ ['exclude', '^browser/geolocation/wifi_data_provider_linux.cc'], ++ ['exclude', '^browser/geolocation/wifi_data_provider_linux.h'], ++ ['exclude', '^browser/geolocation/gateway_data_provider_linux.cc'], ++ ['exclude', '^browser/geolocation/gateway_data_provider_linux.h'], ++ ] ++ }], + ['OS=="mac"', { + 'link_settings': { + 'mac_bundle_resources': [ diff --git a/www/chromium/files/patch-gfx__scoped_image.h b/www/chromium/files/patch-gfx__scoped_image.h deleted file mode 100644 index 4335135e4e75..000000000000 --- a/www/chromium/files/patch-gfx__scoped_image.h +++ /dev/null @@ -1,20 +0,0 @@ ---- gfx/scoped_image.h.orig 2011-03-20 22:02:04.269886673 +0200 -+++ gfx/scoped_image.h 2011-03-20 22:02:04.438736904 +0200 -@@ -11,7 +11,7 @@ - #include "gfx/native_widget_types.h" - #include "third_party/skia/include/core/SkBitmap.h" - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - #include - #elif defined(OS_MACOSX) - #include "base/mac/mac_util.h" -@@ -116,7 +116,7 @@ - #endif // defined(OS_MACOSX) - - // Specialization for the GdkPixbuf type on Linux. --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - template <> - class ScopedImage : public gfx::internal::ScopedImage { - public: diff --git a/www/chromium/files/patch-media__media.gyp b/www/chromium/files/patch-media__media.gyp index 98d0fa984fc1..19fddd628831 100644 --- a/www/chromium/files/patch-media__media.gyp +++ b/www/chromium/files/patch-media__media.gyp @@ -1,6 +1,14 @@ ---- media/media.gyp.orig 2011-04-17 22:22:00.000000000 +0200 -+++ media/media.gyp 2011-04-17 22:22:15.000000000 +0200 -@@ -600,7 +600,6 @@ +--- media/media.gyp.orig 2011-04-21 21:52:13.846559129 +0300 ++++ media/media.gyp 2011-04-21 21:52:29.930558911 +0300 +@@ -612,7 +612,6 @@ + ], + 'libraries': [ + '-lGL', +- '-ldl', + ], + 'sources': [ + 'tools/tile_render_bench/tile_render_bench.cc', +@@ -692,7 +691,6 @@ ], 'link_settings': { 'libraries': [ diff --git a/www/chromium/files/patch-net__base__net_util.cc b/www/chromium/files/patch-net__base__net_util.cc index 9342df1ee8d4..36dbec760565 100644 --- a/www/chromium/files/patch-net__base__net_util.cc +++ b/www/chromium/files/patch-net__base__net_util.cc @@ -1,13 +1,10 @@ ---- ./net/base/net_util.cc.orig 2010-12-16 02:11:31.000000000 +0100 -+++ ./net/base/net_util.cc 2010-12-20 20:15:08.000000000 +0100 -@@ -25,9 +25,9 @@ +--- net/base/net_util.cc.orig 2011-02-17 10:52:37.000000000 +0100 ++++ net/base/net_util.cc 2011-02-20 21:20:04.000000000 +0100 +@@ -24,6 +24,7 @@ #include #include #include +#include #include #include --#include #endif - - #include "base/base64.h" diff --git a/www/chromium/files/patch-net__proxy__proxy_config_service_linux.cc b/www/chromium/files/patch-net__proxy__proxy_config_service_linux.cc index 0c9a6c80b4b9..1c0ad819fbe8 100644 --- a/www/chromium/files/patch-net__proxy__proxy_config_service_linux.cc +++ b/www/chromium/files/patch-net__proxy__proxy_config_service_linux.cc @@ -1,5 +1,5 @@ ---- ./net/proxy/proxy_config_service_linux.cc.orig 2010-12-13 12:03:17.000000000 +0100 -+++ ./net/proxy/proxy_config_service_linux.cc 2011-01-07 14:17:11.000000000 +0100 +--- net/proxy/proxy_config_service_linux.cc.orig 2011-04-04 10:01:16.000000000 +0200 ++++ net/proxy/proxy_config_service_linux.cc 2011-04-11 00:23:55.000000000 +0200 @@ -12,7 +12,13 @@ #include #include @@ -14,7 +14,7 @@ #include #include -@@ -432,7 +438,7 @@ +@@ -433,7 +439,7 @@ public base::MessagePumpLibevent::Watcher { public: explicit GConfSettingGetterImplKDE(base::Environment* env_var_getter) @@ -22,8 +22,8 @@ + : notify_fd_(-1), notify_delegate_(NULL), indirect_manual_(false), auto_no_pac_(false), reversed_bypass_list_(false), env_var_getter_(env_var_getter), file_loop_(NULL) { - // Derive the location of the kde config dir from the environment. -@@ -488,31 +494,35 @@ + // This has to be called on the UI thread (http://crbug.com/69057). +@@ -492,33 +498,37 @@ } virtual ~GConfSettingGetterImplKDE() { @@ -44,6 +44,8 @@ virtual bool Init(MessageLoop* glib_default_loop, MessageLoopForIO* file_loop) { + // This has to be called on the UI thread (http://crbug.com/69057). + base::ThreadRestrictions::ScopedAllowIO allow_io; - DCHECK(inotify_fd_ < 0); - inotify_fd_ = inotify_init(); - if (inotify_fd_ < 0) { @@ -69,7 +71,7 @@ return false; } file_loop_ = file_loop; -@@ -523,28 +533,41 @@ +@@ -529,28 +539,41 @@ } void Shutdown() { @@ -119,7 +121,7 @@ } virtual MessageLoop* GetNotificationLoop() { -@@ -553,7 +576,7 @@ +@@ -559,7 +582,7 @@ // Implement base::MessagePumpLibevent::Delegate. void OnFileCanReadWithoutBlocking(int fd) { @@ -128,7 +130,7 @@ DCHECK(MessageLoop::current() == file_loop_); OnChangeNotification(); } -@@ -824,12 +847,25 @@ +@@ -830,12 +853,24 @@ // from the inotify file descriptor and starts up a debounce timer if // an event for kioslaverc is seen. void OnChangeNotification() { @@ -139,14 +141,13 @@ + bool kioslaverc_touched = true; + struct kevent ke; + if (kevent(notify_fd_, NULL, 0, &ke, 1, NULL) == -1) { -+ LOG(ERROR) << "kevent() failure: no loner watching kioslaverc"; ++ LOG(ERROR) << "kevent() failure: no longer watching kioslaverc"; + notify_watcher_.StopWatchingFileDescriptor(); + close(notify_fd_); + notify_fd_ = -1; + kioslaverc_touched = false; + } + close(ke.ident); -+ +#else char event_buf[(sizeof(inotify_event) + NAME_MAX + 1) * 4]; bool kioslaverc_touched = false; @@ -156,12 +157,8 @@ // inotify returns variable-length structures, which is why we have // this strange-looking loop instead of iterating through an array. char* event_ptr = event_buf; -@@ -856,14 +892,15 @@ - if (errno == EINVAL) { - // Our buffer is not large enough to read the next event. This should - // not happen (because its size is calculated to always be sufficiently -- // large), but if it does we'd warn continuously since |inotify_fd_| -+ // large), but if it does we'd warn continuously since |notify_fd_| +@@ -865,9 +900,9 @@ + // large), but if it does we'd warn continuously since |inotify_fd_| // would be forever ready to read. Close it and stop watching instead. LOG(ERROR) << "inotify failure; no longer watching kioslaverc!"; - inotify_watcher_.StopWatchingFileDescriptor(); @@ -172,11 +169,8 @@ + notify_fd_ = -1; } } -+#endif if (kioslaverc_touched) { - // We don't use Reset() because the timer may not yet be running. - // (In that case Stop() is a no-op.) -@@ -877,8 +914,8 @@ +@@ -883,8 +918,8 @@ typedef std::map string_map_type; typedef std::map > strings_map_type; diff --git a/www/chromium/files/patch-ppapi__proxy__image_data.cc b/www/chromium/files/patch-ppapi__proxy__image_data.cc deleted file mode 100644 index 0ddf1e0e14c6..000000000000 --- a/www/chromium/files/patch-ppapi__proxy__image_data.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- ppapi/proxy/image_data.cc.orig 2011-03-15 05:44:04.000000000 +0200 -+++ ppapi/proxy/image_data.cc 2011-03-15 05:48:26.000000000 +0200 -@@ -4,7 +4,7 @@ - - #include "ppapi/proxy/image_data.h" - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined (OS_FREEBSD) - #include - #endif - diff --git a/www/chromium/files/patch-ppapi__proxy__ppb_image_data_proxy.cc b/www/chromium/files/patch-ppapi__proxy__ppb_image_data_proxy.cc new file mode 100644 index 000000000000..b187a3f9f814 --- /dev/null +++ b/www/chromium/files/patch-ppapi__proxy__ppb_image_data_proxy.cc @@ -0,0 +1,11 @@ +--- ppapi/proxy/ppb_image_data_proxy.cc.orig 2011-04-19 21:36:29.491038804 +0300 ++++ ppapi/proxy/ppb_image_data_proxy.cc 2011-04-19 21:37:11.973039170 +0300 +@@ -21,7 +21,7 @@ + #include "ppapi/proxy/ppapi_messages.h" + #include "ppapi/shared_impl/image_data_impl.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined (OS_FREEBSD) + #include + #elif defined(OS_MACOSX) + #include diff --git a/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__sql__chromium__SQLiteFileSystemChromiumPosix.cpp b/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__sql__chromium__SQLiteFileSystemChromiumPosix.cpp deleted file mode 100644 index 304c58edc42e..000000000000 --- a/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__sql__chromium__SQLiteFileSystemChromiumPosix.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- third_party/WebKit/Source/WebCore/platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp.orig 2011-03-20 22:02:04.262978254 +0200 -+++ third_party/WebKit/Source/WebCore/platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp 2011-03-20 22:02:04.435738199 +0200 -@@ -755,6 +755,8 @@ - if (!success) - success = !fsync(fd); - return success; -+#elif OS(FREEBSD) -+ return !fsync(fd); - #else - return !fdatasync(fd); - #endif diff --git a/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp b/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp index d7905d4a8e84..e70b6e191f02 100644 --- a/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp +++ b/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp @@ -1,11 +1,54 @@ ---- third_party/ffmpeg/ffmpeg.gyp.orig 2011-03-28 21:25:33.000000000 +0200 -+++ third_party/ffmpeg/ffmpeg.gyp 2011-03-28 21:28:28.000000000 +0200 -@@ -56,7 +56,7 @@ - ['target_arch=="arm"', { - 'ffmpeg_asm_lib': 0, +--- third_party/ffmpeg/ffmpeg.gyp.orig 2011-04-26 11:02:53.000000000 +0300 ++++ third_party/ffmpeg/ffmpeg.gyp 2011-04-29 01:18:16.629475671 +0300 +@@ -50,7 +50,7 @@ + }, { + 'ffmpeg_config%': '<(target_arch)', }], - ['OS=="mac" or OS=="win"', { + ['OS=="mac" or OS=="win" or OS=="freebsd"', { 'os_config%': '<(OS)', }, { # all other Unix OS's use the linux config 'os_config%': 'linux', +@@ -205,8 +205,19 @@ + ], + }], # ffmpeg_branding + ['target_arch=="ia32" or target_arch=="x64"', { +- 'dependencies': [ +- '../yasm/yasm.gyp:yasm#host', ++ 'conditions': [ ++ ['use_system_yasm==0', { ++ 'dependencies': [ ++ '../yasm/yasm.gyp:yasm#host', ++ ], ++ 'variables': { ++ 'yasm_path': '<(PRODUCT_DIR)/yasm', ++ }, ++ }, { ++ 'variables': { ++ 'yasm_path': 'h_addr_list[num_addrs] = NULL; + + *herrno = 0; +-#elif defined(LINUX) || defined(ANDROID) ++#elif defined(LINUX) || defined(ANDROID) || defined(OS_FREEBSD) + // gethostbyname() is not thread safe, so we need to call gethostbyname_r() + // which is a reentrant version of gethostbyname(). + ASSERT(kInitHostentLen > sizeof(hostent)); diff --git a/www/chromium/files/patch-third_party__skia__include__core__SkPreConfig.h b/www/chromium/files/patch-third_party__skia__include__core__SkPreConfig.h index 7eb1b268ee58..71921b5f7dcf 100644 --- a/www/chromium/files/patch-third_party__skia__include__core__SkPreConfig.h +++ b/www/chromium/files/patch-third_party__skia__include__core__SkPreConfig.h @@ -1,11 +1,11 @@ ---- ./third_party/skia/include/core/SkPreConfig.h.orig 2010-12-16 02:12:24.000000000 +0100 -+++ ./third_party/skia/include/core/SkPreConfig.h 2010-12-20 20:15:08.000000000 +0100 -@@ -57,6 +57,8 @@ - #if !defined(SK_RESTRICT) - #define SK_RESTRICT __restrict__ - #endif -+#undef SK_RESTRICT -+#define SK_RESTRICT - - ////////////////////////////////////////////////////////////////////// - +--- third_party/skia/include/core/SkPreConfig.h.orig 2011-04-16 11:02:02.000000000 +0300 ++++ third_party/skia/include/core/SkPreConfig.h 2011-04-25 20:08:55.031145158 +0300 +@@ -37,7 +37,7 @@ + #define SK_BUILD_FOR_WIN32 + #elif defined(__SYMBIAN32__) + #define SK_BUILD_FOR_WIN32 +- #elif defined(linux) ++ #elif defined(linux) || defined(__FreeBSD__) + #define SK_BUILD_FOR_UNIX + #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR + #define SK_BUILD_FOR_IOS diff --git a/www/chromium/files/patch-tools__gyp__pylib__gyp__generator__make.py b/www/chromium/files/patch-tools__gyp__pylib__gyp__generator__make.py index 843a7b28d565..815af6572ce1 100644 --- a/www/chromium/files/patch-tools__gyp__pylib__gyp__generator__make.py +++ b/www/chromium/files/patch-tools__gyp__pylib__gyp__generator__make.py @@ -1,18 +1,18 @@ ---- ./tools/gyp/pylib/gyp/generator/make.py.orig 2010-12-16 02:33:33.000000000 +0100 -+++ ./tools/gyp/pylib/gyp/generator/make.py 2010-12-20 20:15:08.000000000 +0100 -@@ -106,7 +106,7 @@ +--- tools/gyp/pylib/gyp/generator/make.py.orig 2011-03-01 10:47:14.000000000 +0100 ++++ tools/gyp/pylib/gyp/generator/make.py 2011-03-01 21:25:10.000000000 +0100 +@@ -114,7 +114,7 @@ # export LINK="$(CXX)" # # This will allow make to invoke N linker processes as specified in -jN. --LINK ?= flock $(builddir)/linker.lock $(CXX) -+LINK ?= $(CXX) - - # We want to use GNU ar's T option if available because it's much faster. - # We try to archive and link a file to see ar and ld support this feature. -@@ -147,13 +147,13 @@ - ARFLAGS.target := $(call detect_arflags,target) - endif +-LINK ?= flock $(builddir)/linker.lock $(CXX) %(LINK_flags)s ++LINK ?= $(CXX) %(LINK_flags)s + CC.target ?= $(CC) + CFLAGS.target ?= $(CFLAGS) +@@ -129,13 +129,13 @@ + # in gyp's make.py where ARFLAGS.host etc. is computed. + # TODO(evan): move all cross-compilation logic to gyp-time so we don't need + # to replicate this environment fallback in make as well. -CC.host ?= gcc -CFLAGS.host ?= -CXX.host ?= g++ @@ -22,11 +22,11 @@ -AR.host ?= ar +CC.host ?= $(CC) +CFLAGS.host ?= $(CFLAGS) -+CXX.host ?= $(CXX) ++CXX.host ?= $(CXX) +CXXFLAGS.host ?= $(CXXFLAGS) +LINK.host ?= $(LINK) +LDFLAGS.host ?= $(LDFLAGS) +AR.host ?= $(AR) - # See the description for ARFLAGS.target. - -include $(obj).host/arflags/arflags.mk - # Temporarily disabled -- see ARFLAGS.target. + ARFLAGS.host := %(ARFLAGS.host)s + + # Flags to make gcc output dependency info. Note that you need to be diff --git a/www/chromium/files/patch-ui__base__resource__resource_bundle.cc b/www/chromium/files/patch-ui__base__resource__resource_bundle.cc index 9476ed53feb0..7561cd801060 100644 --- a/www/chromium/files/patch-ui__base__resource__resource_bundle.cc +++ b/www/chromium/files/patch-ui__base__resource__resource_bundle.cc @@ -1,11 +1,11 @@ ---- ui/base/resource/resource_bundle.cc.orig 2011-01-26 10:31:08.000000000 +0100 -+++ ui/base/resource/resource_bundle.cc 2011-01-30 00:45:39.000000000 +0100 -@@ -176,7 +176,7 @@ - #if defined(OS_MACOSX) - return rb.GetNSImageNamed(resource_id); - #elif defined(USE_X11) && !defined(TOOLKIT_VIEWS) -- return rb.GetPixbufNamed(resource_id); -+ return (gfx::NativeImage)rb.GetPixbufNamed(resource_id); - #else - return rb.GetBitmapNamed(resource_id); - #endif +--- ui/base/resource/resource_bundle.cc.orig 2011-04-15 11:02:03.000000000 +0300 ++++ ui/base/resource/resource_bundle.cc 2011-04-16 23:02:04.027069500 +0300 +@@ -129,7 +129,7 @@ + return *GetEmptyImage(); + } + +-#if !defined(OS_MACOSX) && !defined(OS_LINUX) ++#if !defined(OS_MACOSX) && !defined(OS_LINUX) && !defined(OS_FREEBSD) + // Only Mac and Linux have non-Skia native image types. All other platforms use + // Skia natively, so just use GetImageNamed(). + gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) { diff --git a/www/chromium/files/patch-ui__gfx__image.cc b/www/chromium/files/patch-ui__gfx__image.cc new file mode 100644 index 000000000000..e68af8f2d8f0 --- /dev/null +++ b/www/chromium/files/patch-ui__gfx__image.cc @@ -0,0 +1,74 @@ +--- ui/gfx/image.cc.orig 2011-04-21 23:28:33.509559314 +0300 ++++ ui/gfx/image.cc 2011-04-21 23:28:36.737559521 +0300 +@@ -9,7 +9,7 @@ + #include "base/logging.h" + #include "third_party/skia/include/core/SkBitmap.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + #include + #include + #include "ui/gfx/canvas_skia.h" +@@ -29,7 +29,7 @@ + const SkBitmap* NSImageToSkBitmap(NSImage* image); + #endif + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + const SkBitmap* GdkPixbufToSkBitmap(GdkPixbuf* pixbuf) { + gfx::CanvasSkia canvas(gdk_pixbuf_get_width(pixbuf), + gdk_pixbuf_get_height(pixbuf), +@@ -61,7 +61,7 @@ + return reinterpret_cast(this); + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + GdkPixbufRep* AsGdkPixbufRep() { + CHECK_EQ(type_, Image::kGdkPixbufRep); + return reinterpret_cast(this); +@@ -102,7 +102,7 @@ + DISALLOW_COPY_AND_ASSIGN(SkBitmapRep); + }; + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + class GdkPixbufRep : public ImageRep { + public: + explicit GdkPixbufRep(GdkPixbuf* pixbuf) +@@ -158,7 +158,7 @@ + AddRepresentation(rep); + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + Image::Image(GdkPixbuf* pixbuf) + : default_representation_(Image::kGdkPixbufRep) { + internal::GdkPixbufRep* rep = new internal::GdkPixbufRep(pixbuf); +@@ -190,7 +190,7 @@ + return *(this->operator const SkBitmap*()); + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + Image::operator GdkPixbuf*() { + internal::ImageRep* rep = GetRepresentation(Image::kGdkPixbufRep); + return rep->AsGdkPixbufRep()->pixbuf(); +@@ -237,7 +237,7 @@ + // Handle native-to-Skia conversion. + if (rep_type == Image::kSkBitmapRep) { + internal::SkBitmapRep* rep = NULL; +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + if (default_representation_ == Image::kGdkPixbufRep) { + internal::GdkPixbufRep* pixbuf_rep = default_rep->AsGdkPixbufRep(); + rep = new internal::SkBitmapRep( +@@ -261,7 +261,7 @@ + if (default_rep->type() == Image::kSkBitmapRep) { + internal::SkBitmapRep* skia_rep = default_rep->AsSkBitmapRep(); + internal::ImageRep* native_rep = NULL; +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + if (rep_type == Image::kGdkPixbufRep) { + GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(skia_rep->bitmap()); + native_rep = new internal::GdkPixbufRep(pixbuf); diff --git a/www/chromium/files/patch-ui__gfx__image.h b/www/chromium/files/patch-ui__gfx__image.h new file mode 100644 index 000000000000..4028de554298 --- /dev/null +++ b/www/chromium/files/patch-ui__gfx__image.h @@ -0,0 +1,20 @@ +--- ui/gfx/image.h.orig 2011-04-19 23:12:17.508039568 +0300 ++++ ui/gfx/image.h 2011-04-19 23:12:44.348038227 +0300 +@@ -43,7 +43,7 @@ + // Creates a new image with the default representation. The object will take + // ownership of the image. + explicit Image(const SkBitmap* bitmap); +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + // Does not increase |pixbuf|'s reference count; expects to take ownership. + explicit Image(GdkPixbuf* pixbuf); + #elif defined(OS_MACOSX) +@@ -57,7 +57,7 @@ + // Conversion handlers. + operator const SkBitmap*(); + operator const SkBitmap&(); +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + operator GdkPixbuf*(); + #elif defined(OS_MACOSX) + operator NSImage*(); diff --git a/www/chromium/files/patch-gfx__native_widget_types.h b/www/chromium/files/patch-ui__gfx__native_widget_types.h similarity index 66% rename from www/chromium/files/patch-gfx__native_widget_types.h rename to www/chromium/files/patch-ui__gfx__native_widget_types.h index 76b2669bbe16..1829e12bb7f8 100644 --- a/www/chromium/files/patch-gfx__native_widget_types.h +++ b/www/chromium/files/patch-ui__gfx__native_widget_types.h @@ -1,5 +1,5 @@ ---- gfx/native_widget_types.h.orig 2011-03-20 22:02:04.270736223 +0200 -+++ gfx/native_widget_types.h 2011-03-20 22:02:04.441738962 +0200 +--- ui/gfx/native_widget_types.h.orig 2011-04-16 22:00:39.271073137 +0300 ++++ ui/gfx/native_widget_types.h 2011-04-16 22:02:38.712069130 +0300 @@ -97,7 +97,7 @@ #if defined(OS_MACOSX) diff --git a/www/chromium/files/patch-v8__src__platform-freebsd.cc b/www/chromium/files/patch-v8__src__platform-freebsd.cc deleted file mode 100644 index dc6b76538b01..000000000000 --- a/www/chromium/files/patch-v8__src__platform-freebsd.cc +++ /dev/null @@ -1,91 +0,0 @@ ---- v8/src/platform-freebsd.cc.orig 2011-03-15 05:43:39.000000000 +0200 -+++ v8/src/platform-freebsd.cc 2011-03-15 05:52:01.000000000 +0200 -@@ -53,6 +53,7 @@ - #include "v8.h" - - #include "platform.h" -+#include "top.h" - #include "vm-state-inl.h" - - -@@ -526,6 +527,16 @@ - return result; - } - -+ virtual bool TryLock() { -+ int result = pthread_mutex_trylock(&mutex_); -+ // Return false if the lock is busy and locking failed. -+ if (result == EBUSY) { -+ return false; -+ } -+ ASSERT(result == 0); // Verify no other errors. -+ return true; -+ } -+ - private: - pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. - }; -@@ -595,39 +606,41 @@ - #ifdef ENABLE_LOGGING_AND_PROFILING - - static Sampler* active_sampler_ = NULL; -+static pthread_t vm_tid_ = 0; - - static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { - USE(info); - if (signal != SIGPROF) return; -- if (active_sampler_ == NULL) return; - -- TickSample sample; -+ if (active_sampler_ == NULL || !active_sampler_->IsActive()) return; -+ if (vm_tid_ != pthread_self()) return; - -- // We always sample the VM state. -- sample.state = VMState::current_state(); -+ TickSample sample_obj; -+ TickSample* sample = CpuProfiler::TickSampleEvent(); -+ if (sample == NULL) sample = &sample_obj; -+ -+ // Extracting the sample from the context is extremely machine dependent. -+ ucontext_t* ucontext = reinterpret_cast(context); -+ mcontext_t& mcontext = ucontext->uc_mcontext; -+ sample->state = Top::current_vm_state(); - -- // If profiling, we extract the current pc and sp. -- if (active_sampler_->IsProfiling()) { -- // Extracting the sample from the context is extremely machine dependent. -- ucontext_t* ucontext = reinterpret_cast(context); -- mcontext_t& mcontext = ucontext->uc_mcontext; - #if V8_HOST_ARCH_IA32 -- sample.pc = reinterpret_cast
(mcontext.mc_eip); -- sample.sp = reinterpret_cast
(mcontext.mc_esp); -- sample.fp = reinterpret_cast
(mcontext.mc_ebp); -+ sample->pc = reinterpret_cast
(mcontext.mc_eip); -+ sample->sp = reinterpret_cast
(mcontext.mc_esp); -+ sample->fp = reinterpret_cast
(mcontext.mc_ebp); - #elif V8_HOST_ARCH_X64 -- sample.pc = reinterpret_cast
(mcontext.mc_rip); -- sample.sp = reinterpret_cast
(mcontext.mc_rsp); -- sample.fp = reinterpret_cast
(mcontext.mc_rbp); -+ sample->pc = reinterpret_cast
(mcontext.mc_rip); -+ sample->sp = reinterpret_cast
(mcontext.mc_rsp); -+ sample->fp = reinterpret_cast
(mcontext.mc_rbp); - #elif V8_HOST_ARCH_ARM -- sample.pc = reinterpret_cast
(mcontext.mc_r15); -- sample.sp = reinterpret_cast
(mcontext.mc_r13); -- sample.fp = reinterpret_cast
(mcontext.mc_r11); -+ sample->pc = reinterpret_cast
(mcontext.mc_r15); -+ sample->sp = reinterpret_cast
(mcontext.mc_r13); -+ sample->fp = reinterpret_cast
(mcontext.mc_r11); -+#else -+ UNIMPLEMENTED(); - #endif -- active_sampler_->SampleStack(&sample); -- } -- -- active_sampler_->Tick(&sample); -+ active_sampler_->SampleStack(sample); -+ active_sampler_->Tick(sample); - } - - diff --git a/www/chromium/files/patch-webkit__build__webkit_version.py b/www/chromium/files/patch-webkit__build__webkit_version.py deleted file mode 100644 index 1b1483363e9d..000000000000 --- a/www/chromium/files/patch-webkit__build__webkit_version.py +++ /dev/null @@ -1,37 +0,0 @@ ---- webkit/build/webkit_version.py.orig 2011-03-15 05:46:26.000000000 +0200 -+++ webkit/build/webkit_version.py 2011-03-15 05:52:33.000000000 +0200 -@@ -45,21 +45,24 @@ - - # "svn info" tells us what we want, but third_party/WebKit does *not* - # point at the upstream repo. So instead we run svn info on the directory -- # containing the versioning file (which is some subdirectory of WebKit), -- # then strip that path back off of the resulting URL. -+ # containing the versioning file (which is some subdirectory of WebKit). - version_file_dir = os.path.dirname(version_file) - version_info = lastchange.FetchVersionInfo( - default_lastchange=None, - directory=os.path.join(webkit_dir, version_file_dir)) - -- # Now compute the real WebKit URL by stripping off the version file -- # directory from the URL we get out of version_info. -- # Further, we want to strip off the "http://svn..." from the left. -- # This is the root URL from the repository. -- assert version_info.url.startswith(version_info.root) -- assert version_info.url.endswith(version_file_dir) -- webkit_url = version_info.url[len(version_info.root):-len(version_file_dir)] -- webkit_url = webkit_url.strip('/') -+ if (version_info.url.startswith(version_info.root) and -+ version_info.url.endswith(version_file_dir)): -+ # Now compute the real WebKit URL by stripping off the version file -+ # directory from the URL we get out of version_info. -+ # Further, we want to strip off the "http://svn..." from the left. -+ # This is the root URL from the repository. -+ webkit_url = version_info.url[len(version_info.root):-len(version_file_dir)] -+ webkit_url = webkit_url.strip('/') -+ else: -+ # The data isn't as we expect: perhaps they're using git without svn? -+ # Just dump the output directly. -+ webkit_url = version_info.url - - return "%s@%s" % (webkit_url, version_info.revision) - diff --git a/www/chromium/pkg-plist b/www/chromium/pkg-plist index 4a54bbee2088..2cf4a732e1d9 100644 --- a/www/chromium/pkg-plist +++ b/www/chromium/pkg-plist @@ -111,6 +111,7 @@ bin/chrome %%DATADIR%%/resources/inspector/Images/goArrow.png %%DATADIR%%/resources/inspector/Images/graphLabelCalloutLeft.png %%DATADIR%%/resources/inspector/Images/graphLabelCalloutRight.png +%%DATADIR%%/resources/inspector/Images/helpButtonGlyph.png %%DATADIR%%/resources/inspector/Images/largerResourcesButtonGlyph.png %%DATADIR%%/resources/inspector/Images/localStorage.png %%DATADIR%%/resources/inspector/Images/networkIcon.png