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

Side by Side Diff: chrome/browser/ui/webui/ntp/thumbnail_source.h

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changing struct -> ints. Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 // ThumbnailSource is the gateway between network-level chrome: requests for 25 // ThumbnailSource is the gateway between network-level chrome: requests for
26 // thumbnails and the history/top-sites backend that serves these. 26 // thumbnails and the history/top-sites backend that serves these.
27 class ThumbnailSource : public content::URLDataSource { 27 class ThumbnailSource : public content::URLDataSource {
28 public: 28 public:
29 explicit ThumbnailSource(Profile* profile); 29 explicit ThumbnailSource(Profile* profile);
30 30
31 // content::URLDataSource implementation. 31 // content::URLDataSource implementation.
32 virtual std::string GetSource() OVERRIDE; 32 virtual std::string GetSource() OVERRIDE;
33 virtual void StartDataRequest( 33 virtual void StartDataRequest(
34 const std::string& path, 34 const std::string& path,
35 bool is_incognito, 35 int render_process_id,
36 int render_view_id,
36 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 37 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
37 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; 38 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
38 virtual base::MessageLoop* MessageLoopForRequestPath( 39 virtual base::MessageLoop* MessageLoopForRequestPath(
39 const std::string& path) const OVERRIDE; 40 const std::string& path) const OVERRIDE;
40 virtual bool ShouldServiceRequest( 41 virtual bool ShouldServiceRequest(
41 const net::URLRequest* request) const OVERRIDE; 42 const net::URLRequest* request) const OVERRIDE;
42 43
43 private: 44 private:
44 virtual ~ThumbnailSource(); 45 virtual ~ThumbnailSource();
45 46
(...skipping 12 matching lines...) Expand all
58 // to the StartDataRequest() call. 59 // to the StartDataRequest() call.
59 mutable std::map<std::string, std::string> id_to_url_map_; 60 mutable std::map<std::string, std::string> id_to_url_map_;
60 61
61 // Only used when servicing requests on the UI thread. 62 // Only used when servicing requests on the UI thread.
62 Profile* const profile_; 63 Profile* const profile_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); 65 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 68 #endif // CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698