| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ | 6 #define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 public: | 24 public: |
| 25 virtual ~MetroPinTabHelper(); | 25 virtual ~MetroPinTabHelper(); |
| 26 | 26 |
| 27 bool IsPinned() const; | 27 bool IsPinned() const; |
| 28 | 28 |
| 29 void TogglePinnedToStartScreen(); | 29 void TogglePinnedToStartScreen(); |
| 30 | 30 |
| 31 // content::WebContentsObserver overrides: | 31 // content::WebContentsObserver overrides: |
| 32 virtual void DidNavigateMainFrame( | 32 virtual void DidNavigateMainFrame( |
| 33 const content::LoadCommittedDetails& details, | 33 const content::LoadCommittedDetails& details, |
| 34 const content::FrameNavigateParams& params) OVERRIDE; | 34 const content::FrameNavigateParams& params) override; |
| 35 virtual void DidUpdateFaviconURL( | 35 virtual void DidUpdateFaviconURL( |
| 36 const std::vector<content::FaviconURL>& candidates) OVERRIDE; | 36 const std::vector<content::FaviconURL>& candidates) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // The FaviconDownloader class handles downloading the favicons when a page | 39 // The FaviconDownloader class handles downloading the favicons when a page |
| 40 // is being pinned. After it has downloaded any available favicons it will | 40 // is being pinned. After it has downloaded any available favicons it will |
| 41 // continue on with the page pinning action. | 41 // continue on with the page pinning action. |
| 42 class FaviconChooser; | 42 class FaviconChooser; |
| 43 | 43 |
| 44 explicit MetroPinTabHelper(content::WebContents* web_contents); | 44 explicit MetroPinTabHelper(content::WebContents* web_contents); |
| 45 friend class content::WebContentsUserData<MetroPinTabHelper>; | 45 friend class content::WebContentsUserData<MetroPinTabHelper>; |
| 46 | 46 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 std::vector<content::FaviconURL> favicon_url_candidates_; | 60 std::vector<content::FaviconURL> favicon_url_candidates_; |
| 61 | 61 |
| 62 // The currently active FaviconChooser, if there is one. | 62 // The currently active FaviconChooser, if there is one. |
| 63 scoped_ptr<FaviconChooser> favicon_chooser_; | 63 scoped_ptr<FaviconChooser> favicon_chooser_; |
| 64 | 64 |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(MetroPinTabHelper); | 66 DISALLOW_COPY_AND_ASSIGN(MetroPinTabHelper); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ | 69 #endif // CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_ |
| OLD | NEW |