| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/extensions/extension_dom_ui.h" | 5 #include "chrome/browser/extensions/extension_dom_ui.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "net/base/file_stream.h" | 11 #include "net/base/file_stream.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser.h" | 14 #include "chrome/browser/browser.h" |
| 14 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
| 16 #include "chrome/browser/extensions/extension_bookmark_manager_api.h" | 17 #include "chrome/browser/extensions/extension_bookmark_manager_api.h" |
| 17 #include "chrome/browser/extensions/extensions_service.h" | 18 #include "chrome/browser/extensions/extensions_service.h" |
| 18 #include "chrome/browser/extensions/image_loading_tracker.h" | 19 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 19 #include "chrome/browser/pref_service.h" | 20 #include "chrome/browser/pref_service.h" |
| 20 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profile.h" |
| 21 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 22 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 23 #include "chrome/browser/tab_contents/tab_contents.h" |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 385 } |
| 385 | 386 |
| 386 // static | 387 // static |
| 387 void ExtensionDOMUI::GetFaviconForURL(Profile* profile, | 388 void ExtensionDOMUI::GetFaviconForURL(Profile* profile, |
| 388 FaviconService::GetFaviconRequest* request, const GURL& page_url) { | 389 FaviconService::GetFaviconRequest* request, const GURL& page_url) { |
| 389 // tracker deletes itself when done. | 390 // tracker deletes itself when done. |
| 390 ExtensionDOMUIImageLoadingTracker* tracker = | 391 ExtensionDOMUIImageLoadingTracker* tracker = |
| 391 new ExtensionDOMUIImageLoadingTracker(profile, request, page_url); | 392 new ExtensionDOMUIImageLoadingTracker(profile, request, page_url); |
| 392 tracker->Init(); | 393 tracker->Init(); |
| 393 } | 394 } |
| OLD | NEW |