OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 ATHENA_MAIN_WEB_TASK_H_ |
| 6 #define ATHENA_MAIN_WEB_TASK_H_ |
| 7 |
| 8 #include "athena/task/public/task.h" |
| 9 #include "content/public/browser/web_contents_observer.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 15 class WebTask : public athena::Task, |
| 16 public content::WebContentsObserver { |
| 17 public: |
| 18 explicit WebTask(content::WebContents* contents); |
| 19 virtual ~WebTask(); |
| 20 |
| 21 protected: |
| 22 // Task: |
| 23 virtual SkColor GetRepresentativeColor() OVERRIDE; |
| 24 virtual std::string GetTitle() OVERRIDE; |
| 25 virtual aura::Window* GetNativeWindow() OVERRIDE; |
| 26 |
| 27 // content::WebContentsObserver: |
| 28 virtual void TitleWasSet(content::NavigationEntry* entry, |
| 29 bool explicit_set) OVERRIDE; |
| 30 virtual void DidUpdateFaviconURL( |
| 31 const std::vector<content::FaviconURL>& candidates) OVERRIDE; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(WebTask); |
| 35 }; |
| 36 |
| 37 #endif // ATHENA_MAIN_WEB_TASK_H_ |
OLD | NEW |