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

Unified Diff: components/image_fetcher/image_fetcher_delegate.h

Issue 2761303002: Move common ImageFetcher component files to core/ (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 | « components/image_fetcher/image_fetcher.h ('k') | components/image_fetcher/image_fetcher_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/image_fetcher_delegate.h
diff --git a/components/image_fetcher/image_fetcher_delegate.h b/components/image_fetcher/image_fetcher_delegate.h
deleted file mode 100644
index 38d66b29543987477deaa42660f306e40d538aa4..0000000000000000000000000000000000000000
--- a/components/image_fetcher/image_fetcher_delegate.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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 COMPONENTS_IMAGE_FETCHER_IMAGE_FETCHER_DELEGATE_H_
-#define COMPONENTS_IMAGE_FETCHER_IMAGE_FETCHER_DELEGATE_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-namespace gfx {
-class Image;
-}
-
-namespace image_fetcher {
-
-class ImageFetcherDelegate {
- public:
- ImageFetcherDelegate() {}
-
- // Called when the data for an image was fetched. |id| is an identifier for
- // the fetch (as passed to ImageFetcher::StartOrQueueNetworkRequest); |data|
- // stores (generally compressed) image data owned by the caller, and can be
- // empty if the fetch failed.
- virtual void OnImageDataFetched(const std::string& id,
- const std::string& data) {};
-
- // Called when an image was fetched and decoded. |id| is an identifier for the
- // fetch (as passed to ImageFetcher::StartOrQueueNetworkRequest); |image|
- // stores image data owned by the caller, and can be an empty gfx::Image.
- virtual void OnImageFetched(const std::string& id,
- const gfx::Image& image) {};
-
- protected:
- virtual ~ImageFetcherDelegate() {}
-
- DISALLOW_COPY_AND_ASSIGN(ImageFetcherDelegate);
-};
-
-} // namespace image_fetcher
-
-#endif // COMPONENTS_IMAGE_FETCHER_IMAGE_FETCHER_DELEGATE_H_
« no previous file with comments | « components/image_fetcher/image_fetcher.h ('k') | components/image_fetcher/image_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698