OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LARGE_ICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
10 #include "components/favicon_base/fallback_icon_service.h" | 10 #include "components/favicon/core/fallback_icon_service.h" |
11 #include "components/favicon_base/favicon_types.h" | 11 #include "components/favicon_base/favicon_types.h" |
12 #include "content/public/browser/url_data_source.h" | 12 #include "content/public/browser/url_data_source.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // LargeIconSource services explicit chrome:// requests for large icons. | 16 // LargeIconSource services explicit chrome:// requests for large icons. |
17 // | 17 // |
18 // Format: | 18 // Format: |
19 // chrome://large-icon/size/url | 19 // chrome://large-icon/size/url |
20 // | 20 // |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void SendFallbackIcon(const IconRequest& request); | 66 void SendFallbackIcon(const IconRequest& request); |
67 | 67 |
68 // Returns null to trigger "Not Found" response. | 68 // Returns null to trigger "Not Found" response. |
69 void SendNotFoundResponse( | 69 void SendNotFoundResponse( |
70 const content::URLDataSource::GotDataCallback& callback); | 70 const content::URLDataSource::GotDataCallback& callback); |
71 | 71 |
72 Profile* profile_; | 72 Profile* profile_; |
73 | 73 |
74 base::CancelableTaskTracker cancelable_task_tracker_; | 74 base::CancelableTaskTracker cancelable_task_tracker_; |
75 | 75 |
76 scoped_ptr<favicon_base::FallbackIconService> fallback_icon_service_; | 76 scoped_ptr<FallbackIconService> fallback_icon_service_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(LargeIconSource); | 78 DISALLOW_COPY_AND_ASSIGN(LargeIconSource); |
79 }; | 79 }; |
80 | 80 |
81 #endif // CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_ | 81 #endif // CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_ |
OLD | NEW |