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

Side by Side Diff: components/search_provider_logos/logo_tracker.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
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 COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_ 5 #ifndef COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_
6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_ 6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/callback.h" 13 #include "base/callback.h"
12 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 18 #include "base/observer_list.h"
16 #include "base/sequenced_task_runner.h" 19 #include "base/sequenced_task_runner.h"
17 #include "base/time/clock.h" 20 #include "base/time/clock.h"
18 #include "base/time/time.h" 21 #include "base/time/time.h"
19 #include "components/search_provider_logos/logo_cache.h" 22 #include "components/search_provider_logos/logo_cache.h"
20 #include "components/search_provider_logos/logo_common.h" 23 #include "components/search_provider_logos/logo_common.h"
21 #include "net/url_request/url_fetcher_delegate.h" 24 #include "net/url_request/url_fetcher_delegate.h"
22 #include "url/gurl.h" 25 #include "url/gurl.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 191
189 // Called when the fresh logo has been decoded into an SkBitmap. |image| will 192 // Called when the fresh logo has been decoded into an SkBitmap. |image| will
190 // be NULL if decoding failed. 193 // be NULL if decoding failed.
191 void OnFreshLogoAvailable(scoped_ptr<EncodedLogo> logo, 194 void OnFreshLogoAvailable(scoped_ptr<EncodedLogo> logo,
192 bool parsing_failed, 195 bool parsing_failed,
193 const SkBitmap& image); 196 const SkBitmap& image);
194 197
195 // net::URLFetcherDelegate: 198 // net::URLFetcherDelegate:
196 void OnURLFetchComplete(const net::URLFetcher* source) override; 199 void OnURLFetchComplete(const net::URLFetcher* source) override;
197 void OnURLFetchDownloadProgress(const net::URLFetcher* source, 200 void OnURLFetchDownloadProgress(const net::URLFetcher* source,
198 int64 current, 201 int64_t current,
199 int64 total) override; 202 int64_t total) override;
200 203
201 // The URL from which the logo is fetched. 204 // The URL from which the logo is fetched.
202 GURL logo_url_; 205 GURL logo_url_;
203 206
204 // The function used to parse the logo response from the server. 207 // The function used to parse the logo response from the server.
205 ParseLogoResponse parse_logo_response_func_; 208 ParseLogoResponse parse_logo_response_func_;
206 209
207 // The function used to include the cached logo's fingerprint and call to 210 // The function used to include the cached logo's fingerprint and call to
208 // action request in the logo URL. 211 // action request in the logo URL.
209 AppendQueryparamsToLogoURL append_queryparams_func_; 212 AppendQueryparamsToLogoURL append_queryparams_func_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 255 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
253 256
254 base::WeakPtrFactory<LogoTracker> weak_ptr_factory_; 257 base::WeakPtrFactory<LogoTracker> weak_ptr_factory_;
255 258
256 DISALLOW_COPY_AND_ASSIGN(LogoTracker); 259 DISALLOW_COPY_AND_ASSIGN(LogoTracker);
257 }; 260 };
258 261
259 } // namespace search_provider_logos 262 } // namespace search_provider_logos
260 263
261 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_ 264 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_TRACKER_H_
OLDNEW
« no previous file with comments | « components/search_provider_logos/logo_common.h ('k') | components/search_provider_logos/logo_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698