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

Side by Side Diff: apps/app_window_contents.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc Created 6 years, 3 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
« no previous file with comments | « apps/app_window_contents.h ('k') | apps/app_window_interactive_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "apps/app_window_contents.h" 5 #include "apps/app_window_contents.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/common/extensions/api/app_window.h" 11 #include "chrome/common/extensions/api/app_window.h"
12 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "content/public/browser/render_process_host.h" 14 #include "content/public/browser/render_process_host.h"
15 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
16 #include "content/public/browser/resource_dispatcher_host.h" 16 #include "content/public/browser/resource_dispatcher_host.h"
17 #include "content/public/browser/site_instance.h" 17 #include "content/public/browser/site_instance.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 #include "content/public/common/renderer_preferences.h" 19 #include "content/public/common/renderer_preferences.h"
20 #include "extensions/browser/app_window/native_app_window.h" 20 #include "extensions/browser/app_window/native_app_window.h"
21 #include "extensions/common/extension_messages.h" 21 #include "extensions/common/extension_messages.h"
22 22
23 namespace app_window = extensions::api::app_window; 23 namespace app_window = extensions::api::app_window;
24 using extensions::AppWindow;
24 25
25 namespace apps { 26 namespace apps {
26 27
27 AppWindowContentsImpl::AppWindowContentsImpl(AppWindow* host) : host_(host) {} 28 AppWindowContentsImpl::AppWindowContentsImpl(AppWindow* host) : host_(host) {}
28 29
29 AppWindowContentsImpl::~AppWindowContentsImpl() {} 30 AppWindowContentsImpl::~AppWindowContentsImpl() {}
30 31
31 void AppWindowContentsImpl::Initialize(content::BrowserContext* context, 32 void AppWindowContentsImpl::Initialize(content::BrowserContext* context,
32 const GURL& url) { 33 const GURL& url) {
33 url_ = url; 34 url_ = url;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 content::RenderViewHost* rvh) { 136 content::RenderViewHost* rvh) {
136 DCHECK(rvh); 137 DCHECK(rvh);
137 content::BrowserThread::PostTask( 138 content::BrowserThread::PostTask(
138 content::BrowserThread::IO, FROM_HERE, 139 content::BrowserThread::IO, FROM_HERE,
139 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute, 140 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute,
140 base::Unretained(content::ResourceDispatcherHost::Get()), 141 base::Unretained(content::ResourceDispatcherHost::Get()),
141 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); 142 rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
142 } 143 }
143 144
144 } // namespace apps 145 } // namespace apps
OLDNEW
« no previous file with comments | « apps/app_window_contents.h ('k') | apps/app_window_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698