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

Unified Diff: chrome/browser/search/suggestions/image_decoder_impl.h

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (Closed)
Patch Set: Rebased. Created 3 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
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/suggestions/image_decoder_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/suggestions/image_decoder_impl.h
diff --git a/chrome/browser/search/suggestions/image_decoder_impl.h b/chrome/browser/search/suggestions/image_decoder_impl.h
deleted file mode 100644
index 497d7095551539ad38f07f60b0724e73f0beee1a..0000000000000000000000000000000000000000
--- a/chrome/browser/search/suggestions/image_decoder_impl.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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 CHROME_BROWSER_SEARCH_SUGGESTIONS_IMAGE_DECODER_IMPL_H_
-#define CHROME_BROWSER_SEARCH_SUGGESTIONS_IMAGE_DECODER_IMPL_H_
-
-#include <memory>
-#include <vector>
-
-#include "chrome/browser/image_decoder.h"
-#include "components/image_fetcher/core/image_decoder.h"
-
-namespace suggestions {
-
-// image_fetcher::ImageDecoder implementation.
-// TODO(treib,markusheintz): Move this to a better place - it really has
-// nothing to do with suggestions. crbug.com/624761
-class ImageDecoderImpl : public image_fetcher::ImageDecoder {
- public:
- ImageDecoderImpl();
- ~ImageDecoderImpl() override;
-
- void DecodeImage(
- const std::string& image_data,
- const gfx::Size& desired_image_frame_size,
- const image_fetcher::ImageDecodedCallback& callback) override;
-
- private:
- class DecodeImageRequest;
-
- // Removes the passed image decode |request| from the internal request queue.
- void RemoveDecodeImageRequest(DecodeImageRequest* request);
-
- // All active image decoding requests.
- std::vector<std::unique_ptr<DecodeImageRequest>> decode_image_requests_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageDecoderImpl);
-};
-
-} // namespace suggestions
-
-#endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_IMAGE_DECODER_IMPL_H_
-
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/suggestions/image_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698