| Index: third_party/WebKit/Source/modules/imagecapture/ImageCapture.h | 
| diff --git a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..f0ff7cc4aad5dac3eee0d7648a8a214c3989aed2 | 
| --- /dev/null | 
| +++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h | 
| @@ -0,0 +1,58 @@ | 
| +// Copyright 2016 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. | 
| + | 
| +#ifndef ImageCapture_h | 
| +#define ImageCapture_h | 
| + | 
| +#include "bindings/core/v8/ActiveScriptWrappable.h" | 
| +#include "bindings/core/v8/ScriptPromise.h" | 
| +#include "core/dom/ContextLifecycleObserver.h" | 
| +#include "core/events/EventTarget.h" | 
| +#include "modules/EventTargetModules.h" | 
| +#include "modules/ModulesExport.h" | 
| +#include "platform/AsyncMethodRunner.h" | 
| + | 
| +namespace blink { | 
| + | 
| +class ExceptionState; | 
| +class MediaStreamTrack; | 
| + | 
| +class MODULES_EXPORT ImageCapture final | 
| +    : public EventTargetWithInlineData | 
| +    , public ActiveScriptWrappable | 
| +    , public ContextLifecycleObserver { | 
| +    USING_GARBAGE_COLLECTED_MIXIN(ImageCapture); | 
| +    DEFINE_WRAPPERTYPEINFO(); | 
| +public: | 
| +    static ImageCapture* create(ExecutionContext*, MediaStreamTrack*, ExceptionState&); | 
| +    ~ImageCapture() = default; | 
| + | 
| +    // EventTarget implementation. | 
| +    const AtomicString& interfaceName() const override; | 
| +    ExecutionContext* getExecutionContext() const override; | 
| + | 
| +    // ActiveScriptWrappable implementation. | 
| +    bool hasPendingActivity() const final; | 
| + | 
| +    // ContextLifecycleObserver | 
| +    void contextDestroyed() override; | 
| + | 
| +    MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); } | 
| + | 
| +    ScriptPromise grabFrame(ScriptState*, ExceptionState&); | 
| + | 
| +    DECLARE_VIRTUAL_TRACE(); | 
| + | 
| +private: | 
| +    ImageCapture(ExecutionContext*, MediaStreamTrack*); | 
| + | 
| +    // EventTarget implementation. | 
| +    bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override; | 
| + | 
| +    Member<MediaStreamTrack> m_streamTrack; | 
| +}; | 
| + | 
| +} // namespace blink | 
| + | 
| +#endif // ImageCapture_h | 
|  |