OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TAG_H_ | |
6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TAG_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "chrome/browser/task_manager/providers/web_contents/panel_task.h" | |
10 #include "chrome/browser/task_manager/providers/web_contents/web_contents_tag.h" | |
11 | |
12 namespace task_manager { | |
13 | |
14 // Defines a concrete UserData type for WebContents owned by the PanelManager. | |
15 class PanelTag : public WebContentsTag { | |
16 public: | |
17 // task_manager::WebContentsTag: | |
18 PanelTask* CreateTask() const override; | |
19 | |
20 private: | |
21 friend class WebContentsTags; | |
22 | |
23 PanelTag(content::WebContents* web_contents, Panel* panel); | |
24 ~PanelTag() override; | |
25 | |
26 Panel* panel_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(PanelTag); | |
29 }; | |
30 | |
31 } // namespace task_manager | |
32 | |
33 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TAG_H_ | |
OLD | NEW |