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_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_H_ |
7 | 7 |
8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h" | 8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h" |
9 | 9 |
10 namespace task_management { | 10 namespace task_management { |
11 | 11 |
12 // Defines a task manager representation of the developer tools WebContents. | 12 // Defines a task manager representation of WebContents owned by the |
13 class DevToolsTask : public RendererTask { | 13 // PrerenderManager. |
| 14 class PrerenderTask : public RendererTask { |
14 public: | 15 public: |
15 explicit DevToolsTask(content::WebContents* web_contents); | 16 explicit PrerenderTask(content::WebContents* web_contents); |
16 ~DevToolsTask() override; | 17 ~PrerenderTask() override; |
17 | 18 |
18 // task_management::RendererTask: | 19 // task_management::RendererTask: |
19 void OnTitleChanged(content::NavigationEntry* entry) override; | 20 void OnTitleChanged(content::NavigationEntry* entry) override; |
20 void OnFaviconChanged() override; | 21 void OnFaviconChanged() override; |
21 | 22 |
22 private: | 23 private: |
23 DISALLOW_COPY_AND_ASSIGN(DevToolsTask); | 24 DISALLOW_COPY_AND_ASSIGN(PrerenderTask); |
24 }; | 25 }; |
25 | 26 |
26 } // namespace task_management | 27 } // namespace task_management |
27 | 28 |
28 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_DEVTOOLS_TASK_H
_ | 29 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_
H_ |
OLD | NEW |