Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/task_management/providers/web_contents/extension_task.h

Issue 1254103002: New Task Manager - Phase 1.3.5: Implement Extension Task Providing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Devlin's comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_
7
8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h"
9 #include "extensions/common/view_type.h"
10
11 namespace extensions {
12 class Extension;
13 } // namespace extensions
14
15 namespace task_management {
16
17 // Defines a task manager representation for extensions.
18 class ExtensionTask : public RendererTask {
19 public:
20 ExtensionTask(content::WebContents* web_contents,
21 const extensions::Extension* extension,
22 extensions::ViewType view_type);
23 ~ExtensionTask() override;
24
25 // task_management::RendererTask:
26 void OnTitleChanged(content::NavigationEntry* entry) override;
27 void OnFaviconChanged() override;
28 Type GetType() const override;
29
30 private:
31 // If |extension| is nullptr, this method will get the title from
32 // the |web_contents|.
33 base::string16 GetExtensionTitle(
34 content::WebContents* web_contents,
35 const extensions::Extension* extension,
36 extensions::ViewType view_type) const;
37
38 DISALLOW_COPY_AND_ASSIGN(ExtensionTask);
39 };
40
41 } // namespace task_management
42
43 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698