| 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 "chrome/browser/task_manager/panel_resource_provider.h" | 5 #include "chrome/browser/task_manager/panel_resource_provider.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 PanelResource::PanelResource(Panel* panel) | 55 PanelResource::PanelResource(Panel* panel) |
| 56 : RendererResource( | 56 : RendererResource( |
| 57 panel->GetWebContents()->GetRenderProcessHost()->GetHandle(), | 57 panel->GetWebContents()->GetRenderProcessHost()->GetHandle(), |
| 58 panel->GetWebContents()->GetRenderViewHost()), | 58 panel->GetWebContents()->GetRenderViewHost()), |
| 59 panel_(panel) { | 59 panel_(panel) { |
| 60 message_prefix_id_ = util::GetMessagePrefixID( | 60 message_prefix_id_ = util::GetMessagePrefixID( |
| 61 GetExtension()->is_app(), | 61 GetExtension()->is_app(), |
| 62 true, // is_extension | 62 true, // is_extension |
| 63 panel->profile()->IsOffTheRecord(), | 63 panel->profile()->IsOffTheRecord(), |
| 64 false, // is_prerender | 64 false, // is_prerender |
| 65 false, // is_instant_overlay |
| 65 false); // is_background | 66 false); // is_background |
| 66 } | 67 } |
| 67 | 68 |
| 68 PanelResource::~PanelResource() { | 69 PanelResource::~PanelResource() { |
| 69 } | 70 } |
| 70 | 71 |
| 71 Resource::Type PanelResource::GetType() const { | 72 Resource::Type PanelResource::GetType() const { |
| 72 return EXTENSION; | 73 return EXTENSION; |
| 73 } | 74 } |
| 74 | 75 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 234 } |
| 234 break; | 235 break; |
| 235 } | 236 } |
| 236 default: | 237 default: |
| 237 NOTREACHED() << "Unexpected notificiation."; | 238 NOTREACHED() << "Unexpected notificiation."; |
| 238 break; | 239 break; |
| 239 } | 240 } |
| 240 } | 241 } |
| 241 | 242 |
| 242 } // namespace task_manager | 243 } // namespace task_manager |
| OLD | NEW |