Skip to content

Instantly share code, notes, and snippets.

View fischman's full-sized avatar

Ami Fischman fischman

View GitHub Profile
diff --git a/Source/WebKit/chromium/src/AssociatedURLLoader.cpp b/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
index f1c2aab..e466f4d 100644
--- a/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
+++ b/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
@@ -32,6 +32,7 @@
#include "AssociatedURLLoader.h"
#include "CrossOriginAccessControl.h"
+#include "Document.h"
#include "DocumentThreadableLoader.h"
$ nc videos-cdn.mozilla.net 80
OPTIONS /serv/mozhacks/demos/resources/immersivevideo/dubai.r.webm HTTP/1.1
Host: videos-cdn.mozilla.net
Connection: keep-alive
Access-Control-Request-Method: GET
Origin: http://fiddle.jshell.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1164.0 Safari/537.1
Access-Control-Request-Headers: range
Accept: */*
Referer: http://fiddle.jshell.net/QWChG/2/show/
OPTIONS /serv/mozhacks/demos/resources/immersivevideo/dubai.r.webm HTTP/1.1
Host: videos-cdn.mozilla.net
Connection: keep-alive
Access-Control-Request-Method: GET
Origin: http://fiddle.jshell.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1164.0 Safari/537.1
Access-Control-Request-Headers: origin, accept-encoding, referer, range
Accept: */*
Referer: http://fiddle.jshell.net/QWChG/2/show/
Accept-Encoding: gzip,deflate,sdch
HTMLMediaElement::HTMLMediaElement
HTMLMediaElement::scheduleLoad
HTMLMediaElement::prepareForLoad
HTMLMediaElement::cancelPendingEventsAndCallbacks
HTMLMediaElement::setPlaybackRate(1.000000)
HTMLMediaElement::setShouldDelayLoadEvent(true)
HTMLMediaElement::insertedInto
HTMLMediaElement::insertedInto
HTMLMediaElement::stop
HTMLMediaElement::userCancelledLoad
@fischman
fischman / gist:2713600
Created May 16, 2012 20:16
trying to #include Source/Platform from Source/WebCore/platform using #include <>
ninja: Entering directory `ninja/Debug'
[927/0/1] CXX obj/third_party/WebKit/Source/WebCore/bindings/v8/custom/webcore_remaining.V8GeolocationCustom.o
FAILED: clang++ -B/home/fischman/src/chromium/src/third_party/gold/ -MMD -MF obj/third_party/WebKit/Source/WebCore/bindings/v8/custom/webcore_remaining.V8GeolocationCustom.o.d -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DCOMPONENT_BUILD -DUSE_NSS=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_P2P_APIS=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_PROMO_RESOURCE_SERVICE=1 -DENABLE_AUTOMATION=1 -DGL_GLEXT_PROTOTYPES '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' '-DWEBCORE_NAVIGATOR_PLATFORM="Linux i686"' -DENABLE_3D_P
@fischman
fischman / goma-ninja
Created April 10, 2012 20:44
goma/ninja/clang setup
#!/bin/bash
export PATH="/home/fischman/src/goma:$PATH"
# AMI: per http://go/g-d/msg/goma-users/iqAEq3IBLk8/K0gOhNxLxVoJ
if [ -n "$GOMA_IMPLICIT_INPUT_FILES" ]; then
GOMA_IMPLICIT_INPUT_FILES="$GOMA_IMPLICIT_INPUT_FILES,"
fi
export GOMA_IMPLICIT_INPUT_FILES="${GOMA_IMPLICIT_INPUT_FILES}$(dirname $(realpath $0))/src/build/common.gypi"
exec $(dirname $0)/ninja -j5000 "$@"
$ ../ninja -v chrome
ninja: Entering directory `ninja/Debug'
[7/1/0] cd ../../chrome/common/extensions/api; python ../../../../tools/json_schema_compiler/compiler.py "--root=../../../.." "--destdir=../../../../ninja/Debug/gen" "--namespace=extensions::api" --bundle experimental.dns.idl
[3/1/1] clang++ -B/usr/local/gold/bin -MMD -MF obj/chrome/browser/extensions/browser_extensions.extension_function_registry.o.d -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DCOMPONENT_BUILD -DUSE_NSS=1 -DTOOLKIT_USES_GTK=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_P2P_APIS=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_REGISTER_PROTOCOL_HANDLER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_THEMES=1 -DENABLE_AUTOMATION=1 -DGL_GLEXT_PROTOTYPES -DGOOGLE_PROTOBUF_NO_RTTI -DGURL_DLL -DSK_BUILD_NO_IMAGE_ENCODE '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.
#include <iostream>
template<class T, class U>
std::ostream& operator<<(std::ostream& out, const std::pair<T,U>& p) {
return out << p.first << "," << p.second;
}
int main() {
std::pair<int, int> p(42, -1);
std::cerr << p << std::endl;
Source/WebCore/dom/MessagePortChannel.h
Source/WebCore/fileapi/LocalFileSystem.h
Source/WebCore/loader/appcache/ApplicationCacheHost.h
Source/WebCore/Modules/webdatabase/chromium/DatabaseObserver.h
Source/WebCore/platform/AsyncFileSystem.h
Source/WebCore/platform/audio/AudioDestination.h
Source/WebCore/platform/chromium/PlatformSupport.h
Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.h
Source/WebCore/platform/graphics/chromium/cc/CCInputHandler.h
Source/WebCore/platform/graphics/chromium/cc/CCProxy.h
$ grep 'RenderEmbeddedObject.o' ninja/Debug/.ninja_log |tail -2
69135 69382 0 obj/third_party/WebKit/Source/WebCore/WebCore.gyp/libwebcore_rendering.a rm -f obj/third_party/WebKit/Source/WebCore/WebCore.gyp/libwebcore_rendering.a && ar rcsT obj/third_party/WebKit/Source/WebCore/WebCore.gyp/libwebcore_rendering.a obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.AutoTableLayout.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.BidiRun.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.CounterNode.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.EllipsisBox.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.FilterEffectRenderer.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.FixedTableLayout.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.HitTestingTransformState.o obj/third_party/WebKit/Source/WebCore/rendering/webcore_rendering.HitTestResult.o obj/third_party/WebKit/S