Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: content/browser/tab_contents/background_contents.cc

Issue 6537015: Start moving core pieces of Chrome multi-process code to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/background_contents.h ('k') | content/browser/tab_contents/constrained_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698