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

Side by Side Diff: chrome/browser/search/suggestions/suggestions_source.h

Issue 445753004: [Suggestions] Rename ThumbnailManager to ImageManagerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browsertest fix Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_ 6 #define CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const suggestions::SuggestionsProfile suggestions_profile; 51 const suggestions::SuggestionsProfile suggestions_profile;
52 const content::URLDataSource::GotDataCallback callback; 52 const content::URLDataSource::GotDataCallback callback;
53 std::map<GURL, std::string> base64_encoded_pngs; 53 std::map<GURL, std::string> base64_encoded_pngs;
54 }; 54 };
55 55
56 // Callback for suggestions from SuggestionsService. 56 // Callback for suggestions from SuggestionsService.
57 void OnSuggestionsAvailable( 57 void OnSuggestionsAvailable(
58 const content::URLDataSource::GotDataCallback& callback, 58 const content::URLDataSource::GotDataCallback& callback,
59 const SuggestionsProfile& suggestions_profile); 59 const SuggestionsProfile& suggestions_profile);
60 60
61 // Callback for responses from each ThumbnailManager request. 61 // Callback for responses from each Thumbnail request.
62 void OnThumbnailAvailable(RequestContext* context, base::Closure barrier, 62 void OnThumbnailAvailable(RequestContext* context, base::Closure barrier,
63 const GURL& url, const SkBitmap* bitmap); 63 const GURL& url, const SkBitmap* bitmap);
64 64
65 // Callback for when all requests are complete. Renders the output webpage and 65 // Callback for when all requests are complete. Renders the output webpage and
66 // passes the result to the original caller. 66 // passes the result to the original caller.
67 void OnThumbnailsFetched(RequestContext* context); 67 void OnThumbnailsFetched(RequestContext* context);
68 68
69 // Only used when servicing requests on the UI thread. 69 // Only used when servicing requests on the UI thread.
70 Profile* const profile_; 70 Profile* const profile_;
71 71
72 // For callbacks may be run after destruction. 72 // For callbacks may be run after destruction.
73 base::WeakPtrFactory<SuggestionsSource> weak_ptr_factory_; 73 base::WeakPtrFactory<SuggestionsSource> weak_ptr_factory_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(SuggestionsSource); 75 DISALLOW_COPY_AND_ASSIGN(SuggestionsSource);
76 }; 76 };
77 77
78 } // namespace suggestions 78 } // namespace suggestions
79 79
80 #endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_ 80 #endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698