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

Unified Diff: chrome/browser/task_management/providers/web_contents/extension_tag.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_management/providers/web_contents/extension_tag.h
diff --git a/chrome/browser/task_management/providers/web_contents/extension_tag.h b/chrome/browser/task_management/providers/web_contents/extension_tag.h
new file mode 100644
index 0000000000000000000000000000000000000000..6936812afa0ea2d9ba2b4f8c02c6fcd0a4445ea1
--- /dev/null
+++ b/chrome/browser/task_management/providers/web_contents/extension_tag.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TAG_H_
+#define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TAG_H_
+
+#include "chrome/browser/task_management/providers/web_contents/extension_task.h"
+#include "chrome/browser/task_management/providers/web_contents/web_contents_tag.h"
+
+namespace extensions {
+class Extension;
+} // namespace extensions
+
+namespace task_management {
+
+// Defines a concrete UserData type for WebContents owned by extensions.
+class ExtensionTag : public WebContentsTag {
+ public:
+ // task_management::WebContentsTag:
+ ExtensionTask* CreateTask() const override;
+
+ private:
+ friend class WebContentsTags;
+
+ ExtensionTag(content::WebContents* web_contents,
+ const extensions::ViewType view_type);
+ ~ExtensionTag() override;
+
+ // The ViewType of the extension WebContents this tag is attached to.
+ const extensions::ViewType view_type_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionTag);
+};
+
+} // namespace task_management
+
+#endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TAG_H_

Powered by Google App Engine
This is Rietveld 408576698