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/guest_information.h" | 5 #include "chrome/browser/task_manager/guest_information.h" |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 using extensions::Extension; | 33 using extensions::Extension; |
34 | 34 |
35 namespace task_manager { | 35 namespace task_manager { |
36 | 36 |
37 class GuestResource : public RendererResource { | 37 class GuestResource : public RendererResource { |
38 public: | 38 public: |
39 explicit GuestResource(content::RenderViewHost* render_view_host); | 39 explicit GuestResource(content::RenderViewHost* render_view_host); |
40 virtual ~GuestResource(); | 40 virtual ~GuestResource(); |
41 | 41 |
42 // Resource methods: | 42 // Resource methods: |
43 virtual Type GetType() const OVERRIDE; | 43 virtual Type GetType() const override; |
44 virtual base::string16 GetTitle() const OVERRIDE; | 44 virtual base::string16 GetTitle() const override; |
45 virtual gfx::ImageSkia GetIcon() const OVERRIDE; | 45 virtual gfx::ImageSkia GetIcon() const override; |
46 virtual content::WebContents* GetWebContents() const OVERRIDE; | 46 virtual content::WebContents* GetWebContents() const override; |
47 | 47 |
48 private: | 48 private: |
49 DISALLOW_COPY_AND_ASSIGN(GuestResource); | 49 DISALLOW_COPY_AND_ASSIGN(GuestResource); |
50 }; | 50 }; |
51 | 51 |
52 GuestResource::GuestResource(RenderViewHost* render_view_host) | 52 GuestResource::GuestResource(RenderViewHost* render_view_host) |
53 : RendererResource( | 53 : RendererResource( |
54 render_view_host->GetSiteInstance()->GetProcess()->GetHandle(), | 54 render_view_host->GetSiteInstance()->GetProcess()->GetHandle(), |
55 render_view_host) { | 55 render_view_host) { |
56 } | 56 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 scoped_ptr<RendererResource> GuestInformation::MakeResource( | 117 scoped_ptr<RendererResource> GuestInformation::MakeResource( |
118 WebContents* web_contents) { | 118 WebContents* web_contents) { |
119 return scoped_ptr<RendererResource>( | 119 return scoped_ptr<RendererResource>( |
120 new GuestResource(web_contents->GetRenderViewHost())); | 120 new GuestResource(web_contents->GetRenderViewHost())); |
121 } | 121 } |
122 | 122 |
123 } // namespace task_manager | 123 } // namespace task_manager |
OLD | NEW |