| Index: chrome/browser/ui/metro_pin_tab_helper_win.h
|
| diff --git a/chrome/browser/ui/metro_pin_tab_helper.h b/chrome/browser/ui/metro_pin_tab_helper_win.h
|
| similarity index 71%
|
| rename from chrome/browser/ui/metro_pin_tab_helper.h
|
| rename to chrome/browser/ui/metro_pin_tab_helper_win.h
|
| index 23084a2fef920137992ba99e9dd549a6b759f215..3cb2532d508e522f64aeee602d4f474b90dfb5ba 100644
|
| --- a/chrome/browser/ui/metro_pin_tab_helper.h
|
| +++ b/chrome/browser/ui/metro_pin_tab_helper_win.h
|
| @@ -2,11 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
|
| -#define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
|
| +#ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_
|
| +#define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_
|
|
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
| +#include "ui/gfx/image/image_skia.h"
|
|
|
| // Per-tab class to help manage metro pinning.
|
| class MetroPinTabHelper
|
| @@ -25,16 +26,25 @@ class MetroPinTabHelper
|
| const content::FrameNavigateParams& params) OVERRIDE;
|
|
|
| private:
|
| + // The TaskRunner handles running tasks for this helper on the FILE thread.
|
| + class TaskRunner;
|
| +
|
| explicit MetroPinTabHelper(content::WebContents* tab_contents);
|
| friend class content::WebContentsUserData<MetroPinTabHelper>;
|
|
|
| // Queries the metro driver about the pinned state of the current URL.
|
| void UpdatePinnedStateForCurrentURL();
|
|
|
| + void UnPinPageFromStartScreen();
|
| +
|
| // Whether the current URL is pinned to the metro start screen.
|
| bool is_pinned_;
|
|
|
| + // The task runner for the helper, which runs things for it on the FILE
|
| + // thread.
|
| + scoped_refptr<TaskRunner> task_runner_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MetroPinTabHelper);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
|
| +#endif // CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_WIN_H_
|
|
|