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

Side by Side Diff: chrome/browser/prerender/prerender_contents.cc

Issue 5783004: Keep deinlining stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Well, it all compiles locally? 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/prerender/prerender_contents.h" 5 #include "chrome/browser/prerender/prerender_contents.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/background_contents_service.h" 8 #include "chrome/browser/background_contents_service.h"
9 #include "chrome/browser/browsing_instance.h" 9 #include "chrome/browser/browsing_instance.h"
10 #include "chrome/browser/prerender/prerender_manager.h" 10 #include "chrome/browser/prerender/prerender_manager.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 render_view_host_->NavigateToURL(prerender_url_); 51 render_view_host_->NavigateToURL(prerender_url_);
52 } 52 }
53 53
54 PrerenderContents::~PrerenderContents() { 54 PrerenderContents::~PrerenderContents() {
55 if (!render_view_host_) // Will be null for unit tests. 55 if (!render_view_host_) // Will be null for unit tests.
56 return; 56 return;
57 57
58 render_view_host_->Shutdown(); // deletes render_view_host 58 render_view_host_->Shutdown(); // deletes render_view_host
59 } 59 }
60 60
61 RenderViewHostDelegate::View* PrerenderContents::GetViewDelegate() {
62 return this;
63 }
64
65 const GURL& PrerenderContents::GetURL() const {
66 return url_;
67 }
68
61 ViewType::Type PrerenderContents::GetRenderViewType() const { 69 ViewType::Type PrerenderContents::GetRenderViewType() const {
62 return ViewType::BACKGROUND_CONTENTS; 70 return ViewType::BACKGROUND_CONTENTS;
63 } 71 }
64 72
65 int PrerenderContents::GetBrowserWindowID() const { 73 int PrerenderContents::GetBrowserWindowID() const {
66 return extension_misc::kUnknownWindowId; 74 return extension_misc::kUnknownWindowId;
67 } 75 }
68 76
69 void PrerenderContents::DidNavigate( 77 void PrerenderContents::DidNavigate(
70 RenderViewHost* render_view_host, 78 RenderViewHost* render_view_host,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool success, 135 bool success,
128 const std::wstring& prompt) { 136 const std::wstring& prompt) {
129 render_view_host_->JavaScriptMessageBoxClosed(reply_msg, success, prompt); 137 render_view_host_->JavaScriptMessageBoxClosed(reply_msg, success, prompt);
130 } 138 }
131 139
132 gfx::NativeWindow PrerenderContents::GetMessageBoxRootWindow() { 140 gfx::NativeWindow PrerenderContents::GetMessageBoxRootWindow() {
133 NOTIMPLEMENTED(); 141 NOTIMPLEMENTED();
134 return NULL; 142 return NULL;
135 } 143 }
136 144
145 TabContents* PrerenderContents::AsTabContents() {
146 return NULL;
147 }
148
149 ExtensionHost* PrerenderContents::AsExtensionHost() {
150 return NULL;
151 }
152
137 void PrerenderContents::UpdateInspectorSetting(const std::string& key, 153 void PrerenderContents::UpdateInspectorSetting(const std::string& key,
138 const std::string& value) { 154 const std::string& value) {
139 RenderViewHostDelegateHelper::UpdateInspectorSetting(profile_, key, value); 155 RenderViewHostDelegateHelper::UpdateInspectorSetting(profile_, key, value);
140 } 156 }
141 157
142 void PrerenderContents::ClearInspectorSettings() { 158 void PrerenderContents::ClearInspectorSettings() {
143 RenderViewHostDelegateHelper::ClearInspectorSettings(profile_); 159 RenderViewHostDelegateHelper::ClearInspectorSettings(profile_);
144 } 160 }
145 161
146 void PrerenderContents::Close(RenderViewHost* render_view_host) { 162 void PrerenderContents::Close(RenderViewHost* render_view_host) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 208 }
193 209
194 void PrerenderContents::ShowCreatedWidget(int route_id, 210 void PrerenderContents::ShowCreatedWidget(int route_id,
195 const gfx::Rect& initial_pos) { 211 const gfx::Rect& initial_pos) {
196 NOTIMPLEMENTED(); 212 NOTIMPLEMENTED();
197 } 213 }
198 214
199 void PrerenderContents::ShowCreatedFullscreenWidget(int route_id) { 215 void PrerenderContents::ShowCreatedFullscreenWidget(int route_id) {
200 NOTIMPLEMENTED(); 216 NOTIMPLEMENTED();
201 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698