OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/task_management/providers/web_contents/devtools_task.h" | 9 #include "chrome/browser/task_management/providers/web_contents/devtools_task.h" |
9 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
.h" | 10 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
.h" |
10 | 11 |
11 namespace task_management { | 12 namespace task_management { |
12 | 13 |
13 // Defines a concrete UserData type for WebContents owned by DevToolsWindow. | 14 // Defines a concrete UserData type for WebContents owned by DevToolsWindow. |
14 class DevToolsTag : public WebContentsTag { | 15 class DevToolsTag : public WebContentsTag { |
15 public: | 16 public: |
16 // task_management::WebContentsTag: | 17 // task_management::WebContentsTag: |
17 DevToolsTask* CreateTask() const override; | 18 DevToolsTask* CreateTask() const override; |
18 | 19 |
19 private: | 20 private: |
20 friend class WebContentsTags; | 21 friend class WebContentsTags; |
21 | 22 |
22 explicit DevToolsTag(content::WebContents* web_contents); | 23 explicit DevToolsTag(content::WebContents* web_contents); |
23 ~DevToolsTag() override; | 24 ~DevToolsTag() override; |
24 | 25 |
25 DISALLOW_COPY_AND_ASSIGN(DevToolsTag); | 26 DISALLOW_COPY_AND_ASSIGN(DevToolsTag); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace task_management | 29 } // namespace task_management |
29 | 30 |
30 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ | 31 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TAG_H_ |
OLD | NEW |