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

Side by Side Diff: chrome/browser/extensions/extension_page_capture_api.cc

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/extension_page_capture_api.h" 5 #include "chrome/browser/extensions/extension_page_capture_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/extension_tab_util.h" 10 #include "chrome/browser/extensions/extension_tab_util.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents.h"
12 #include "chrome/common/extensions/extension_messages.h" 12 #include "chrome/common/extensions/extension_messages.h"
13 #include "content/public/browser/child_process_security_policy.h" 13 #include "content/public/browser/child_process_security_policy.h"
14 #include "content/public/browser/notification_details.h" 14 #include "content/public/browser/notification_details.h"
15 #include "content/public/browser/notification_source.h" 15 #include "content/public/browser/notification_source.h"
16 #include "content/public/browser/notification_types.h" 16 #include "content/public/browser/notification_types.h"
17 #include "content/public/browser/render_process_host.h" 17 #include "content/public/browser/render_process_host.h"
18 #include "content/public/browser/render_view_host.h" 18 #include "content/public/browser/render_view_host.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 20
21 #include <limits> 21 #include <limits>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 SendResponse(true); 180 SendResponse(true);
181 181
182 // Note that we'll wait for a response ack message received in 182 // Note that we'll wait for a response ack message received in
183 // OnMessageReceivedFromRenderView before we call Release() (to prevent the 183 // OnMessageReceivedFromRenderView before we call Release() (to prevent the
184 // blob file from being deleted). 184 // blob file from being deleted).
185 } 185 }
186 186
187 WebContents* PageCaptureSaveAsMHTMLFunction::GetWebContents() { 187 WebContents* PageCaptureSaveAsMHTMLFunction::GetWebContents() {
188 Browser* browser = NULL; 188 Browser* browser = NULL;
189 TabContentsWrapper* tab_contents_wrapper = NULL; 189 TabContents* tab_contents = NULL;
190 190
191 if (!ExtensionTabUtil::GetTabById(tab_id_, profile(), include_incognito(), 191 if (!ExtensionTabUtil::GetTabById(tab_id_, profile(), include_incognito(),
192 &browser, NULL, &tab_contents_wrapper, NULL)) { 192 &browser, NULL, &tab_contents, NULL)) {
193 return NULL; 193 return NULL;
194 } 194 }
195 return tab_contents_wrapper->web_contents(); 195 return tab_contents->web_contents();
196 } 196 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_override_apitest.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698