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_PRERENDER_TAG_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TAG_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TAG_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TAG_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/task_management/providers/web_contents/prerender_task.h
" | 9 #include "chrome/browser/task_management/providers/web_contents/prerender_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 the | 14 // Defines a concrete UserData type for WebContents owned by the |
14 // PrerenderManager. | 15 // PrerenderManager. |
15 class PrerenderTag : public WebContentsTag { | 16 class PrerenderTag : public WebContentsTag { |
16 public: | 17 public: |
17 // task_management::WebContentsTag: | 18 // task_management::WebContentsTag: |
18 PrerenderTask* CreateTask() const override; | 19 PrerenderTask* CreateTask() const override; |
19 | 20 |
20 private: | 21 private: |
21 friend class WebContentsTags; | 22 friend class WebContentsTags; |
22 | 23 |
23 explicit PrerenderTag(content::WebContents* web_contents); | 24 explicit PrerenderTag(content::WebContents* web_contents); |
24 ~PrerenderTag() override; | 25 ~PrerenderTag() override; |
25 | 26 |
26 DISALLOW_COPY_AND_ASSIGN(PrerenderTag); | 27 DISALLOW_COPY_AND_ASSIGN(PrerenderTag); |
27 }; | 28 }; |
28 | 29 |
29 } // namespace task_management | 30 } // namespace task_management |
30 | 31 |
31 | 32 |
32 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TAG_H
_ | 33 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TAG_H
_ |
OLD | NEW |