OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_information.h" | 5 #include "chrome/browser/task_manager/panel_information.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/task_manager/renderer_resource.h" | 10 #include "chrome/browser/task_manager/renderer_resource.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 using extensions::Extension; | 28 using extensions::Extension; |
29 | 29 |
30 namespace task_manager { | 30 namespace task_manager { |
31 | 31 |
32 class PanelResource : public RendererResource { | 32 class PanelResource : public RendererResource { |
33 public: | 33 public: |
34 explicit PanelResource(Panel* panel); | 34 explicit PanelResource(Panel* panel); |
35 virtual ~PanelResource(); | 35 virtual ~PanelResource(); |
36 | 36 |
37 // Resource methods: | 37 // Resource methods: |
38 virtual Type GetType() const OVERRIDE; | 38 virtual Type GetType() const override; |
39 virtual base::string16 GetTitle() const OVERRIDE; | 39 virtual base::string16 GetTitle() const override; |
40 virtual gfx::ImageSkia GetIcon() const OVERRIDE; | 40 virtual gfx::ImageSkia GetIcon() const override; |
41 virtual content::WebContents* GetWebContents() const OVERRIDE; | 41 virtual content::WebContents* GetWebContents() const override; |
42 | 42 |
43 private: | 43 private: |
44 Panel* panel_; | 44 Panel* panel_; |
45 // Determines prefix for title reflecting whether extensions are apps | 45 // Determines prefix for title reflecting whether extensions are apps |
46 // or in incognito mode. | 46 // or in incognito mode. |
47 int message_prefix_id_; | 47 int message_prefix_id_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(PanelResource); | 49 DISALLOW_COPY_AND_ASSIGN(PanelResource); |
50 }; | 50 }; |
51 | 51 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 for (size_t i = 0; i < panels.size(); ++i) { | 126 for (size_t i = 0; i < panels.size(); ++i) { |
127 if (panels[i]->GetWebContents() == web_contents) { | 127 if (panels[i]->GetWebContents() == web_contents) { |
128 return scoped_ptr<RendererResource>(new PanelResource(panels[i])); | 128 return scoped_ptr<RendererResource>(new PanelResource(panels[i])); |
129 } | 129 } |
130 } | 130 } |
131 NOTREACHED(); | 131 NOTREACHED(); |
132 return scoped_ptr<RendererResource>(); | 132 return scoped_ptr<RendererResource>(); |
133 } | 133 } |
134 | 134 |
135 } // namespace task_manager | 135 } // namespace task_manager |
OLD | NEW |