OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tab_contents/background_contents.h" | 5 #include "content/browser/tab_contents/background_contents.h" |
6 | 6 |
7 #include "chrome/browser/background_contents_service.h" | 7 #include "chrome/browser/background_contents_service.h" |
8 #include "chrome/browser/browsing_instance.h" | 8 #include "chrome/browser/browsing_instance.h" |
9 #include "chrome/browser/desktop_notification_handler.h" | 9 #include "chrome/browser/desktop_notification_handler.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/renderer_host/render_view_host.h" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
12 #include "chrome/browser/renderer_host/site_instance.h" | 12 #include "chrome/browser/renderer_host/site_instance.h" |
13 #include "chrome/browser/renderer_preferences_util.h" | 13 #include "chrome/browser/renderer_preferences_util.h" |
14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 BackgroundContents* | 260 BackgroundContents* |
261 BackgroundContents::GetBackgroundContentsByID(int render_process_id, | 261 BackgroundContents::GetBackgroundContentsByID(int render_process_id, |
262 int render_view_id) { | 262 int render_view_id) { |
263 RenderViewHost* render_view_host = | 263 RenderViewHost* render_view_host = |
264 RenderViewHost::FromID(render_process_id, render_view_id); | 264 RenderViewHost::FromID(render_process_id, render_view_id); |
265 if (!render_view_host) | 265 if (!render_view_host) |
266 return NULL; | 266 return NULL; |
267 | 267 |
268 return render_view_host->delegate()->GetAsBackgroundContents(); | 268 return render_view_host->delegate()->GetAsBackgroundContents(); |
269 } | 269 } |
OLD | NEW |