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

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

Issue 16702003: Move ShellWindow into apps component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yar Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/app_window_contents.h" 5 #include "chrome/browser/extensions/app_window_contents.h"
6 6
7 #include "chrome/browser/printing/print_preview_message_handler.h" 7 #include "chrome/browser/printing/print_preview_message_handler.h"
8 #include "chrome/browser/printing/print_view_manager.h" 8 #include "chrome/browser/printing/print_view_manager.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/extensions/native_app_window.h" 10 #include "chrome/browser/ui/extensions/native_app_window.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "chrome/common/extensions/api/app_window.h" 12 #include "chrome/common/extensions/api/app_window.h"
13 #include "chrome/common/extensions/extension_messages.h" 13 #include "chrome/common/extensions/extension_messages.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
16 #include "content/public/browser/render_view_host.h" 16 #include "content/public/browser/render_view_host.h"
17 #include "content/public/browser/resource_dispatcher_host.h" 17 #include "content/public/browser/resource_dispatcher_host.h"
18 #include "content/public/browser/site_instance.h" 18 #include "content/public/browser/site_instance.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/public/common/renderer_preferences.h" 20 #include "content/public/common/renderer_preferences.h"
21 21
22 namespace app_window = extensions::api::app_window; 22 namespace app_window = extensions::api::app_window;
23 23
24 using apps::ShellWindow;
25
24 AppWindowContents::AppWindowContents(ShellWindow* host) 26 AppWindowContents::AppWindowContents(ShellWindow* host)
25 : host_(host) { 27 : host_(host) {
26 } 28 }
27 29
28 AppWindowContents::~AppWindowContents() { 30 AppWindowContents::~AppWindowContents() {
29 } 31 }
30 32
31 void AppWindowContents::Initialize(Profile* profile, const GURL& url) { 33 void AppWindowContents::Initialize(Profile* profile, const GURL& url) {
32 url_ = url; 34 url_ = url;
33 35
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 174
173 void AppWindowContents::SuspendRenderViewHost( 175 void AppWindowContents::SuspendRenderViewHost(
174 content::RenderViewHost* rvh) { 176 content::RenderViewHost* rvh) {
175 DCHECK(rvh); 177 DCHECK(rvh);
176 content::BrowserThread::PostTask( 178 content::BrowserThread::PostTask(
177 content::BrowserThread::IO, FROM_HERE, 179 content::BrowserThread::IO, FROM_HERE,
178 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute, 180 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute,
179 base::Unretained(content::ResourceDispatcherHost::Get()), 181 base::Unretained(content::ResourceDispatcherHost::Get()),
180 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); 182 rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
181 } 183 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_window_contents.h ('k') | chrome/browser/extensions/extension_tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698