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

Unified Diff: athena/main/web_task.h

Issue 302683002: athena: Add the concept of Activity and related managers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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: athena/main/web_task.h
diff --git a/athena/main/web_task.h b/athena/main/web_task.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ede9a621a8c4e1118de24eda8443b9a448d908d
--- /dev/null
+++ b/athena/main/web_task.h
@@ -0,0 +1,37 @@
+// Copyright 2014 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 ATHENA_MAIN_WEB_TASK_H_
+#define ATHENA_MAIN_WEB_TASK_H_
+
+#include "athena/task/public/task.h"
+#include "content/public/browser/web_contents_observer.h"
+
+namespace content {
+class WebContents;
+}
+
+class WebTask : public athena::Task,
+ public content::WebContentsObserver {
+ public:
+ explicit WebTask(content::WebContents* contents);
+ virtual ~WebTask();
+
+ protected:
+ // Task:
+ virtual SkColor GetRepresentativeColor() OVERRIDE;
+ virtual std::string GetTitle() OVERRIDE;
+ virtual aura::Window* GetNativeWindow() OVERRIDE;
+
+ // content::WebContentsObserver:
+ virtual void TitleWasSet(content::NavigationEntry* entry,
+ bool explicit_set) OVERRIDE;
+ virtual void DidUpdateFaviconURL(
+ const std::vector<content::FaviconURL>& candidates) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebTask);
+};
+
+#endif // ATHENA_MAIN_WEB_TASK_H_
« no previous file with comments | « athena/main/placeholder.cc ('k') | athena/main/web_task.cc » ('j') | athena/task/public/task.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698