| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |