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/task_management/providers/web_contents/web_contents_tas
k_provider.h" | 5 #include "chrome/browser/task_management/providers/web_contents/web_contents_tas
k_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
9 #include "chrome/browser/task_management/providers/web_contents/subframe_task.h" | 10 #include "chrome/browser/task_management/providers/web_contents/subframe_task.h" |
10 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" | 11 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" |
11 #include "content/public/browser/render_frame_host.h" | 12 #include "content/public/browser/render_frame_host.h" |
12 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
14 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
15 | 16 |
16 using content::RenderFrameHost; | 17 using content::RenderFrameHost; |
17 using content::SiteInstance; | 18 using content::SiteInstance; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 377 |
377 WebContentsEntry* entry = itr->second; | 378 WebContentsEntry* entry = itr->second; |
378 entries_map_.erase(itr); | 379 entries_map_.erase(itr); |
379 | 380 |
380 // The entry we're about to delete is our caller, however its' still fine to | 381 // The entry we're about to delete is our caller, however its' still fine to |
381 // delete it. | 382 // delete it. |
382 delete entry; | 383 delete entry; |
383 } | 384 } |
384 | 385 |
385 } // namespace task_management | 386 } // namespace task_management |
OLD | NEW |