| 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_
|
|
|