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/tab_capture/tab_capture_registry.h" | 5 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/sessions/session_tab_helper.h" | 12 #include "chrome/browser/sessions/session_tab_helper.h" |
13 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 13 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/render_frame_host.h" | 15 #include "content/public/browser/render_frame_host.h" |
16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
17 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
18 #include "extensions/browser/event_router.h" | 18 #include "extensions/browser/event_router.h" |
19 #include "extensions/browser/extension_registry.h" | 19 #include "extensions/browser/extension_registry.h" |
20 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
21 | 21 |
22 #if defined(USE_AURA) | 22 #if defined(USE_AURA) |
23 #include "base/threading/thread_task_runner_handle.h" | 23 #include "base/threading/thread_task_runner_handle.h" |
24 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
25 #include "chrome/browser/ui/browser_list.h" | 25 #include "chrome/browser/ui/browser_list.h" |
26 #include "chrome/browser/ui/browser_window.h" | 26 #include "chrome/browser/ui/browser_window.h" |
27 #include "ui/aura/window.h" | 27 #include "ui/aura/window.h" // nogncheck |
28 #include "ui/aura/window_observer.h" | 28 #include "ui/aura/window_observer.h" // nogncheck |
29 #endif | 29 #endif |
30 | 30 |
31 using content::BrowserThread; | 31 using content::BrowserThread; |
32 using extensions::tab_capture::TabCaptureState; | 32 using extensions::tab_capture::TabCaptureState; |
33 | 33 |
34 namespace extensions { | 34 namespace extensions { |
35 | 35 |
36 namespace tab_capture = api::tab_capture; | 36 namespace tab_capture = api::tab_capture; |
37 | 37 |
38 #if defined(USE_AURA) | 38 #if defined(USE_AURA) |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 it != requests_.end(); ++it) { | 462 it != requests_.end(); ++it) { |
463 if ((*it) == request) { | 463 if ((*it) == request) { |
464 requests_.erase(it); | 464 requests_.erase(it); |
465 return; | 465 return; |
466 } | 466 } |
467 } | 467 } |
468 NOTREACHED(); | 468 NOTREACHED(); |
469 } | 469 } |
470 | 470 |
471 } // namespace extensions | 471 } // namespace extensions |
OLD | NEW |