| 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 "apps/native_app_window.h" |
| 7 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/extensions/native_app_window.h" | |
| 10 #include "chrome/common/extensions/api/app_window.h" | 10 #include "chrome/common/extensions/api/app_window.h" |
| 11 #include "chrome/common/extensions/extension_messages.h" | 11 #include "chrome/common/extensions/extension_messages.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
| 14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/resource_dispatcher_host.h" | 15 #include "content/public/browser/resource_dispatcher_host.h" |
| 16 #include "content/public/browser/site_instance.h" | 16 #include "content/public/browser/site_instance.h" |
| 17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 18 #include "content/public/common/renderer_preferences.h" | 18 #include "content/public/common/renderer_preferences.h" |
| 19 | 19 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 content::RenderViewHost* rvh) { | 168 content::RenderViewHost* rvh) { |
| 169 DCHECK(rvh); | 169 DCHECK(rvh); |
| 170 content::BrowserThread::PostTask( | 170 content::BrowserThread::PostTask( |
| 171 content::BrowserThread::IO, FROM_HERE, | 171 content::BrowserThread::IO, FROM_HERE, |
| 172 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute, | 172 base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute, |
| 173 base::Unretained(content::ResourceDispatcherHost::Get()), | 173 base::Unretained(content::ResourceDispatcherHost::Get()), |
| 174 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); | 174 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace apps | 177 } // namespace apps |
| OLD | NEW |