Chromium Code Reviews| Index: chrome/browser/ui/webui/fileicon_source.h |
| diff --git a/chrome/browser/ui/webui/fileicon_source.h b/chrome/browser/ui/webui/fileicon_source.h |
| index f42fabf4bde323edb623b5f6d85c05bd506b4448..7a939106a32b94993b948fd4ec14e02ecbc7d7b8 100644 |
| --- a/chrome/browser/ui/webui/fileicon_source.h |
| +++ b/chrome/browser/ui/webui/fileicon_source.h |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| +#include "base/file_path.h" |
| #include "chrome/browser/icon_manager.h" |
| #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| @@ -36,14 +37,17 @@ class FileIconSource : public ChromeURLDataManager::DataSource { |
| IconManager::Handle request_handle, |
| gfx::Image* icon); |
| - private: |
| + protected: |
| virtual ~FileIconSource(); |
| - CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| + // Once the |path| and |icon_size| has been determined from the request, this |
| + // function is called to perform the actual fetch. |
|
Evan Stade
2012/01/31 04:42:47
nit: mention that it's virtual just for testing
asanka
2012/01/31 17:04:30
Done.
|
| + virtual void FetchFileIcon(const FilePath& path, |
| + IconLoader::IconSize icon_size, |
| + int request_id); |
| - // Raw PNG representation of the favicon to show when the favicon |
| - // database doesn't have a favicon for a webpage. |
| - scoped_refptr<RefCountedBytes> default_favicon_; |
| + private: |
| + CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| DISALLOW_COPY_AND_ASSIGN(FileIconSource); |
| }; |