Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4787)

Unified Diff: chrome/browser/ui/snapshot_tab_helper.h

Issue 12881005: Allow CopyFromBackingStore to fallback to copying from the renderer side if the accelerated surface… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unused include Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/snapshot_tab_helper.h
diff --git a/chrome/browser/ui/snapshot_tab_helper.h b/chrome/browser/ui/snapshot_tab_helper.h
deleted file mode 100644
index bde61b1b2bcd53d9ab91a5c953fa1a35aeace9ba..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/snapshot_tab_helper.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_UI_SNAPSHOT_TAB_HELPER_H_
-#define CHROME_BROWSER_UI_SNAPSHOT_TAB_HELPER_H_
-
-#include "content/public/browser/web_contents_observer.h"
-#include "content/public/browser/web_contents_user_data.h"
-
-class SkBitmap;
-
-// Per-tab class to handle snapshot functionality.
-class SnapshotTabHelper
- : public content::WebContentsObserver,
- public content::WebContentsUserData<SnapshotTabHelper> {
- public:
- virtual ~SnapshotTabHelper();
-
- // Captures a snapshot of the page.
- void CaptureSnapshot();
-
- private:
- explicit SnapshotTabHelper(content::WebContents* web_contents);
- friend class content::WebContentsUserData<SnapshotTabHelper>;
-
- // content::WebContentsObserver overrides:
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- // Internal helpers ----------------------------------------------------------
-
- // Message handler.
- void OnSnapshot(const SkBitmap& bitmap);
-
- DISALLOW_COPY_AND_ASSIGN(SnapshotTabHelper);
-};
-
-#endif // CHROME_BROWSER_UI_SNAPSHOT_TAB_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698