OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chromeos/app_mode/kiosk_session_plugin_handler.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
15 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" | 15 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Seconds to wait after a plugin hung is detected. | 22 // Seconds to wait after a plugin hung is detected. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 if (it == watchers_.end()) | 121 if (it == watchers_.end()) |
122 return; | 122 return; |
123 | 123 |
124 watchers_.weak_erase(it); | 124 watchers_.weak_erase(it); |
125 | 125 |
126 // Schedule the delete later after |observer|'s WebContentsDestroyed finishes. | 126 // Schedule the delete later after |observer|'s WebContentsDestroyed finishes. |
127 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, observer); | 127 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, observer); |
128 } | 128 } |
129 | 129 |
130 } // namespace chromeos | 130 } // namespace chromeos |
OLD | NEW |