diff options
Diffstat (limited to 'chromium/ui/snapshot/screenshot_grabber.h')
-rw-r--r-- | chromium/ui/snapshot/screenshot_grabber.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chromium/ui/snapshot/screenshot_grabber.h b/chromium/ui/snapshot/screenshot_grabber.h index 7a0a9473f2e..8cf7723d47d 100644 --- a/chromium/ui/snapshot/screenshot_grabber.h +++ b/chromium/ui/snapshot/screenshot_grabber.h @@ -6,6 +6,7 @@ #define UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ #include <memory> +#include <string> #include "base/callback.h" #include "base/compiler_specific.h" @@ -20,10 +21,6 @@ #include "ui/snapshot/screenshot_grabber_observer.h" #include "ui/snapshot/snapshot_export.h" -namespace base { -class TaskRunner; -} - namespace ui { // TODO(flackr): Componentize google drive so that we don't need the @@ -50,14 +47,12 @@ class SNAPSHOT_EXPORT ScreenshotGrabberDelegate { // the remote file and call the callback with the local path. virtual void PrepareFileAndRunOnBlockingPool( const base::FilePath& path, - scoped_refptr<base::TaskRunner> blocking_task_runner, const FileCallback& callback_on_blocking_pool); }; class SNAPSHOT_EXPORT ScreenshotGrabber { public: - ScreenshotGrabber(ScreenshotGrabberDelegate* client, - scoped_refptr<base::TaskRunner> blocking_task_runner); + explicit ScreenshotGrabber(ScreenshotGrabberDelegate* client); ~ScreenshotGrabber(); // Takes a screenshot of |rect| in |window| in that window's coordinate space @@ -92,9 +87,6 @@ class SNAPSHOT_EXPORT ScreenshotGrabber { // The timestamp when the screenshot task was issued last time. base::TimeTicks last_screenshot_timestamp_; - // Task runner for blocking tasks. - scoped_refptr<base::TaskRunner> blocking_task_runner_; - #if defined(USE_AURA) // The object to hide cursor when taking screenshot. std::unique_ptr<ScopedCursorHider> cursor_hider_; |