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

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

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browsing_instance.h" 8 #include "chrome/browser/browsing_instance.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool success, 140 bool success,
141 const std::wstring& prompt) { 141 const std::wstring& prompt) {
142 render_view_host_->JavaScriptMessageBoxClosed(reply_msg, success, prompt); 142 render_view_host_->JavaScriptMessageBoxClosed(reply_msg, success, prompt);
143 } 143 }
144 144
145 gfx::NativeWindow BackgroundContents::GetMessageBoxRootWindow() { 145 gfx::NativeWindow BackgroundContents::GetMessageBoxRootWindow() {
146 NOTIMPLEMENTED(); 146 NOTIMPLEMENTED();
147 return NULL; 147 return NULL;
148 } 148 }
149 149
150 TabContents* BackgroundContents::AsTabContents() {
151 return NULL;
152 }
153
154 ExtensionHost* BackgroundContents::AsExtensionHost() {
155 return NULL;
156 }
157
150 void BackgroundContents::UpdateInspectorSetting(const std::string& key, 158 void BackgroundContents::UpdateInspectorSetting(const std::string& key,
151 const std::string& value) { 159 const std::string& value) {
152 Profile* profile = render_view_host_->process()->profile(); 160 Profile* profile = render_view_host_->process()->profile();
153 RenderViewHostDelegateHelper::UpdateInspectorSetting(profile, key, value); 161 RenderViewHostDelegateHelper::UpdateInspectorSetting(profile, key, value);
154 } 162 }
155 163
156 void BackgroundContents::ClearInspectorSettings() { 164 void BackgroundContents::ClearInspectorSettings() {
157 Profile* profile = render_view_host_->process()->profile(); 165 Profile* profile = render_view_host_->process()->profile();
158 RenderViewHostDelegateHelper::ClearInspectorSettings(profile); 166 RenderViewHostDelegateHelper::ClearInspectorSettings(profile);
159 } 167 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 BackgroundContents* 243 BackgroundContents*
236 BackgroundContents::GetBackgroundContentsByID(int render_process_id, 244 BackgroundContents::GetBackgroundContentsByID(int render_process_id,
237 int render_view_id) { 245 int render_view_id) {
238 RenderViewHost* render_view_host = 246 RenderViewHost* render_view_host =
239 RenderViewHost::FromID(render_process_id, render_view_id); 247 RenderViewHost::FromID(render_process_id, render_view_id);
240 if (!render_view_host) 248 if (!render_view_host)
241 return NULL; 249 return NULL;
242 250
243 return render_view_host->delegate()->GetAsBackgroundContents(); 251 return render_view_host->delegate()->GetAsBackgroundContents();
244 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/background_contents.h ('k') | chrome/browser/tab_contents/interstitial_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698