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

Side by Side Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const SkBitmap& badge_icon() const { return badge_icon_; } 89 const SkBitmap& badge_icon() const { return badge_icon_; }
90 const SkBitmap& primary_icon() const { return primary_icon_; } 90 const SkBitmap& primary_icon() const { return primary_icon_; }
91 ShortcutInfo& shortcut_info() { return shortcut_info_; } 91 ShortcutInfo& shortcut_info() { return shortcut_info_; }
92 92
93 private: 93 private:
94 friend class base::RefCounted<AddToHomescreenDataFetcher>; 94 friend class base::RefCounted<AddToHomescreenDataFetcher>;
95 95
96 ~AddToHomescreenDataFetcher() override; 96 ~AddToHomescreenDataFetcher() override;
97 97
98 // WebContentsObserver: 98 // WebContentsObserver:
99 bool OnMessageReceived(const IPC::Message& message) override; 99 bool OnMessageReceived(const IPC::Message& message,
100 content::RenderFrameHost* sender) override;
100 101
101 // Called if either InstallableManager or the favicon fetch takes too long. 102 // Called if either InstallableManager or the favicon fetch takes too long.
102 void OnDataTimedout(); 103 void OnDataTimedout();
103 104
104 // Called when InstallableManager finishes looking for a manifest and icon. 105 // Called when InstallableManager finishes looking for a manifest and icon.
105 void OnDidPerformInstallableCheck(const InstallableData& data); 106 void OnDidPerformInstallableCheck(const InstallableData& data);
106 107
107 // Grabs the favicon for the current URL. 108 // Grabs the favicon for the current URL.
108 void FetchFavicon(); 109 void FetchFavicon();
109 void OnFaviconFetched( 110 void OnFaviconFetched(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Indicates whether to check WebAPK compatibility. 144 // Indicates whether to check WebAPK compatibility.
144 bool check_webapk_compatibility_; 145 bool check_webapk_compatibility_;
145 bool is_waiting_for_web_application_info_; 146 bool is_waiting_for_web_application_info_;
146 bool is_installable_check_complete_; 147 bool is_installable_check_complete_;
147 bool is_icon_saved_; 148 bool is_icon_saved_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher); 150 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher);
150 }; 151 };
151 152
152 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 153 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698