OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/browser/lazy_background_task_queue.h" | 5 #include "extensions/browser/lazy_background_task_queue.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
10 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
11 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
12 #include "content/public/browser/site_instance.h" | 13 #include "content/public/browser/site_instance.h" |
13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
14 #include "extensions/browser/extension_host.h" | 15 #include "extensions/browser/extension_host.h" |
15 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
16 #include "extensions/browser/extensions_browser_client.h" | 17 #include "extensions/browser/extensions_browser_client.h" |
17 #include "extensions/browser/lazy_background_task_queue_factory.h" | 18 #include "extensions/browser/lazy_background_task_queue_factory.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // task queue as well. | 185 // task queue as well. |
185 ExtensionsBrowserClient* browser_client = ExtensionsBrowserClient::Get(); | 186 ExtensionsBrowserClient* browser_client = ExtensionsBrowserClient::Get(); |
186 if (browser_client->HasOffTheRecordContext(browser_context)) { | 187 if (browser_client->HasOffTheRecordContext(browser_context)) { |
187 ProcessPendingTasks(NULL, | 188 ProcessPendingTasks(NULL, |
188 browser_client->GetOffTheRecordContext(browser_context), | 189 browser_client->GetOffTheRecordContext(browser_context), |
189 extension); | 190 extension); |
190 } | 191 } |
191 } | 192 } |
192 | 193 |
193 } // namespace extensions | 194 } // namespace extensions |
OLD | NEW |