| 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 "chrome/browser/chrome_notification_types.h" | |
| 9 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
| 10 #include "content/public/browser/notification_service.h" | 9 #include "content/public/browser/notification_service.h" |
| 11 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| 12 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
| 13 #include "content/public/browser/site_instance.h" | 12 #include "content/public/browser/site_instance.h" |
| 14 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 15 #include "extensions/browser/extension_host.h" | 14 #include "extensions/browser/extension_host.h" |
| 16 #include "extensions/browser/extension_registry.h" | 15 #include "extensions/browser/extension_registry.h" |
| 17 #include "extensions/browser/extension_system.h" | 16 #include "extensions/browser/extension_system.h" |
| 18 #include "extensions/browser/extensions_browser_client.h" | 17 #include "extensions/browser/extensions_browser_client.h" |
| 18 #include "extensions/browser/notification_types.h" |
| 19 #include "extensions/browser/process_manager.h" | 19 #include "extensions/browser/process_manager.h" |
| 20 #include "extensions/browser/process_map.h" | 20 #include "extensions/browser/process_map.h" |
| 21 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "extensions/common/extension_messages.h" | 22 #include "extensions/common/extension_messages.h" |
| 23 #include "extensions/common/manifest_handlers/background_info.h" | 23 #include "extensions/common/manifest_handlers/background_info.h" |
| 24 #include "extensions/common/view_type.h" | 24 #include "extensions/common/view_type.h" |
| 25 | 25 |
| 26 namespace extensions { | 26 namespace extensions { |
| 27 | 27 |
| 28 LazyBackgroundTaskQueue::LazyBackgroundTaskQueue( | 28 LazyBackgroundTaskQueue::LazyBackgroundTaskQueue( |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // task queue as well. | 178 // task queue as well. |
| 179 ExtensionsBrowserClient* browser_client = ExtensionsBrowserClient::Get(); | 179 ExtensionsBrowserClient* browser_client = ExtensionsBrowserClient::Get(); |
| 180 if (browser_client->HasOffTheRecordContext(browser_context)) { | 180 if (browser_client->HasOffTheRecordContext(browser_context)) { |
| 181 ProcessPendingTasks(NULL, | 181 ProcessPendingTasks(NULL, |
| 182 browser_client->GetOffTheRecordContext(browser_context), | 182 browser_client->GetOffTheRecordContext(browser_context), |
| 183 extension); | 183 extension); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace extensions | 187 } // namespace extensions |
| OLD | NEW |