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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/wallpaper_source.h

Issue 10824006: Revert 148272 - Refactor the wallpaper encoding to another file/class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/webui/options2/chromeos/wallpaper_source.h
===================================================================
--- chrome/browser/ui/webui/options2/chromeos/wallpaper_source.h (revision 148277)
+++ chrome/browser/ui/webui/options2/chromeos/wallpaper_source.h (working copy)
@@ -14,9 +14,6 @@
#include "third_party/skia/include/core/SkBitmap.h"
namespace chromeos {
-
-class SimplePngEncoder;
-
namespace options2 {
// A DataSource for chrome://wallpaper/ URL, provides current user's wallpaper.
@@ -46,15 +43,12 @@
// Cancel current image encoding operation.
void CancelPendingEncodingOperation();
- // Callback to call if we cancel the wallpaper encode operation.
- void CancelCallback(int request_id);
-
- // Send image stored in |data| as a reply to request
+ // Send image stored in |data| as a reply to request
// identifed by |request_id|.
void SendCurrentUserWallpaper(int request_id,
scoped_refptr<base::RefCountedBytes> data);
- scoped_refptr<SimplePngEncoder> png_encoder_;
+ scoped_refptr<WallpaperEncodingOperation> wallpaper_encoding_op_;
base::WeakPtrFactory<WallpaperImageSource> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698