| 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 | |
| 66 false); // is_background | 65 false); // is_background |
| 67 } | 66 } |
| 68 | 67 |
| 69 PanelResource::~PanelResource() { | 68 PanelResource::~PanelResource() { |
| 70 } | 69 } |
| 71 | 70 |
| 72 Resource::Type PanelResource::GetType() const { | 71 Resource::Type PanelResource::GetType() const { |
| 73 return EXTENSION; | 72 return EXTENSION; |
| 74 } | 73 } |
| 75 | 74 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 233 } |
| 235 break; | 234 break; |
| 236 } | 235 } |
| 237 default: | 236 default: |
| 238 NOTREACHED() << "Unexpected notificiation."; | 237 NOTREACHED() << "Unexpected notificiation."; |
| 239 break; | 238 break; |
| 240 } | 239 } |
| 241 } | 240 } |
| 242 | 241 |
| 243 } // namespace task_manager | 242 } // namespace task_manager |
| OLD | NEW |