OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FAVICON_FAVICON_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/task.h" | |
15 #include "chrome/browser/cancelable_request.h" | 14 #include "chrome/browser/cancelable_request.h" |
16 #include "chrome/browser/history/history_types.h" | 15 #include "chrome/browser/history/history_types.h" |
17 #include "chrome/common/ref_counted_util.h" | 16 #include "chrome/common/ref_counted_util.h" |
18 | 17 |
19 class GURL; | 18 class GURL; |
20 class Profile; | 19 class Profile; |
21 | 20 |
22 // The favicon service provides methods to access favicons. It calls the history | 21 // The favicon service provides methods to access favicons. It calls the history |
23 // backend behind the scenes. | 22 // backend behind the scenes. |
24 // | 23 // |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 105 |
107 Profile* profile_; | 106 Profile* profile_; |
108 | 107 |
109 // Helper to forward an empty result if we cannot get the history service. | 108 // Helper to forward an empty result if we cannot get the history service. |
110 void ForwardEmptyResultAsync(GetFaviconRequest* request); | 109 void ForwardEmptyResultAsync(GetFaviconRequest* request); |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(FaviconService); | 111 DISALLOW_COPY_AND_ASSIGN(FaviconService); |
113 }; | 112 }; |
114 | 113 |
115 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 114 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
OLD | NEW |