OLD | NEW |
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 #include "chrome/browser/extensions/api/downloads/downloads_api.h" | 5 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cctype> | 8 #include <cctype> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <set> | 10 #include <set> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "content/public/browser/resource_context.h" | 65 #include "content/public/browser/resource_context.h" |
66 #include "content/public/browser/resource_dispatcher_host.h" | 66 #include "content/public/browser/resource_dispatcher_host.h" |
67 #include "content/public/browser/web_contents.h" | 67 #include "content/public/browser/web_contents.h" |
68 #include "content/public/browser/web_contents_view.h" | 68 #include "content/public/browser/web_contents_view.h" |
69 #include "extensions/browser/event_router.h" | 69 #include "extensions/browser/event_router.h" |
70 #include "extensions/browser/extension_function_dispatcher.h" | 70 #include "extensions/browser/extension_function_dispatcher.h" |
71 #include "extensions/browser/extension_prefs.h" | 71 #include "extensions/browser/extension_prefs.h" |
72 #include "extensions/browser/extension_system.h" | 72 #include "extensions/browser/extension_system.h" |
73 #include "extensions/common/extension.h" | 73 #include "extensions/common/extension.h" |
74 #include "extensions/common/permissions/permissions_data.h" | 74 #include "extensions/common/permissions/permissions_data.h" |
| 75 #include "net/base/filename_util.h" |
75 #include "net/base/load_flags.h" | 76 #include "net/base/load_flags.h" |
76 #include "net/base/net_util.h" | |
77 #include "net/http/http_util.h" | 77 #include "net/http/http_util.h" |
78 #include "net/url_request/url_request.h" | 78 #include "net/url_request/url_request.h" |
79 #include "third_party/skia/include/core/SkBitmap.h" | 79 #include "third_party/skia/include/core/SkBitmap.h" |
80 #include "ui/base/webui/web_ui_util.h" | 80 #include "ui/base/webui/web_ui_util.h" |
81 #include "ui/gfx/image/image_skia.h" | 81 #include "ui/gfx/image/image_skia.h" |
82 | 82 |
83 using content::BrowserContext; | 83 using content::BrowserContext; |
84 using content::BrowserThread; | 84 using content::BrowserThread; |
85 using content::DownloadItem; | 85 using content::DownloadItem; |
86 using content::DownloadManager; | 86 using content::DownloadManager; |
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 extensions::UnloadedExtensionInfo* unloaded = | 1900 extensions::UnloadedExtensionInfo* unloaded = |
1901 content::Details<extensions::UnloadedExtensionInfo>(details).ptr(); | 1901 content::Details<extensions::UnloadedExtensionInfo>(details).ptr(); |
1902 std::set<const extensions::Extension*>::iterator iter = | 1902 std::set<const extensions::Extension*>::iterator iter = |
1903 shelf_disabling_extensions_.find(unloaded->extension); | 1903 shelf_disabling_extensions_.find(unloaded->extension); |
1904 if (iter != shelf_disabling_extensions_.end()) | 1904 if (iter != shelf_disabling_extensions_.end()) |
1905 shelf_disabling_extensions_.erase(iter); | 1905 shelf_disabling_extensions_.erase(iter); |
1906 break; | 1906 break; |
1907 } | 1907 } |
1908 } | 1908 } |
1909 } | 1909 } |
OLD | NEW |