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

Unified Diff: components/suggestions/image_fetcher.h

Issue 543753002: [Suggestions] Move ImageManager to the component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years, 3 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/suggestions/DEPS ('k') | components/suggestions/image_fetcher_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/image_fetcher.h
diff --git a/components/suggestions/image_fetcher.h b/components/suggestions/image_fetcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..52fcff4f67da49a4c54ebb44d8c9e3960c17cb18
--- /dev/null
+++ b/components/suggestions/image_fetcher.h
@@ -0,0 +1,34 @@
+// 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_SUGGESTIONS_IMAGE_FETCHER_H_
+#define COMPONENTS_SUGGESTIONS_IMAGE_FETCHER_H_
+
+#include "base/callback.h"
+#include "components/suggestions/image_fetcher_delegate.h"
+#include "url/gurl.h"
+
+class SkBitmap;
+
+namespace suggestions {
+
+// A class used to fetch server images.
+class ImageFetcher {
+ public:
+ ImageFetcher() {}
+ virtual ~ImageFetcher() {}
+
+ virtual void SetImageFetcherDelegate(ImageFetcherDelegate* delegate) = 0;
+
+ virtual void StartOrQueueNetworkRequest(
+ const GURL& url, const GURL& image_url,
+ base::Callback<void(const GURL&, const SkBitmap*)> callback) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ImageFetcher);
+};
+
+} // namespace suggestions
+
+#endif // COMPONENTS_SUGGESTIONS_IMAGE_FETCHER_H_
« no previous file with comments | « components/suggestions/DEPS ('k') | components/suggestions/image_fetcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698