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

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

Issue 6721021: Move a bunch of renderer->browser messages to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 "chrome/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/desktop_notification_handler.h" 8 #include "chrome/browser/desktop_notification_handler.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_preferences_util.h" 10 #include "chrome/browser/renderer_preferences_util.h"
11 #include "chrome/common/extensions/extension_constants.h" 11 #include "chrome/common/extensions/extension_constants.h"
12 #include "chrome/common/render_messages_params.h" 12 #include "chrome/common/render_messages_params.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "chrome/common/view_types.h" 14 #include "chrome/common/view_types.h"
15 #include "content/browser/browsing_instance.h" 15 #include "content/browser/browsing_instance.h"
16 #include "content/browser/renderer_host/render_view_host.h" 16 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/site_instance.h" 17 #include "content/browser/site_instance.h"
18 #include "content/common/notification_service.h" 18 #include "content/common/notification_service.h"
19 #include "content/common/view_messages.h"
19 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
20 21
21 //////////////// 22 ////////////////
22 // BackgroundContents 23 // BackgroundContents
23 24
24 BackgroundContents::BackgroundContents(SiteInstance* site_instance, 25 BackgroundContents::BackgroundContents(SiteInstance* site_instance,
25 int routing_id, 26 int routing_id,
26 Delegate* delegate) 27 Delegate* delegate)
27 : delegate_(delegate) { 28 : delegate_(delegate) {
28 Profile* profile = site_instance->browsing_instance()->profile(); 29 Profile* profile = site_instance->browsing_instance()->profile();
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 BackgroundContents* 261 BackgroundContents*
261 BackgroundContents::GetBackgroundContentsByID(int render_process_id, 262 BackgroundContents::GetBackgroundContentsByID(int render_process_id,
262 int render_view_id) { 263 int render_view_id) {
263 RenderViewHost* render_view_host = 264 RenderViewHost* render_view_host =
264 RenderViewHost::FromID(render_process_id, render_view_id); 265 RenderViewHost::FromID(render_process_id, render_view_id);
265 if (!render_view_host) 266 if (!render_view_host)
266 return NULL; 267 return NULL;
267 268
268 return render_view_host->delegate()->GetAsBackgroundContents(); 269 return render_view_host->delegate()->GetAsBackgroundContents();
269 } 270 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698