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

Side by Side Diff: chrome/browser/banners/app_banner_manager.h

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: Addressing comments Created 3 years, 8 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_BANNERS_APP_BANNER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
dominickn 2017/04/04 05:25:33 This include is no longer needed.
F 2017/04/04 15:21:26 Done.
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/engagement/site_engagement_observer.h" 13 #include "chrome/browser/engagement/site_engagement_observer.h"
14 #include "chrome/browser/installable/installable_logging.h" 14 #include "chrome/browser/installable/installable_logging.h"
15 #include "chrome/browser/installable/installable_manager.h" 15 #include "chrome/browser/installable/installable_manager.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
18 #include "third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom .h" 18 #include "third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom .h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // The URL of the manifest. 202 // The URL of the manifest.
203 GURL manifest_url_; 203 GURL manifest_url_;
204 204
205 // The manifest object. 205 // The manifest object.
206 content::Manifest manifest_; 206 content::Manifest manifest_;
207 207
208 // The URL of the primary icon. 208 // The URL of the primary icon.
209 GURL primary_icon_url_; 209 GURL primary_icon_url_;
210 210
211 // The primary icon object. 211 // The primary icon object.
212 std::unique_ptr<SkBitmap> primary_icon_; 212 SkBitmap primary_icon_;
213 213
214 // The referrer string (if any) specified in the app URL. Used only for native 214 // The referrer string (if any) specified in the app URL. Used only for native
215 // app banners. 215 // app banners.
216 std::string referrer_; 216 std::string referrer_;
217 217
218 private: 218 private:
219 friend class AppBannerManagerTest; 219 friend class AppBannerManagerTest;
220 220
221 // Record that the banner could be shown at this point, if the triggering 221 // Record that the banner could be shown at this point, if the triggering
222 // heuristic allowed. 222 // heuristic allowed.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // scoped to the WebContents which they are observing. This allows us to use 277 // scoped to the WebContents which they are observing. This allows us to use
278 // weak pointers for callbacks. 278 // weak pointers for callbacks.
279 base::WeakPtrFactory<AppBannerManager> weak_factory_; 279 base::WeakPtrFactory<AppBannerManager> weak_factory_;
280 280
281 DISALLOW_COPY_AND_ASSIGN(AppBannerManager); 281 DISALLOW_COPY_AND_ASSIGN(AppBannerManager);
282 }; 282 };
283 283
284 } // namespace banners 284 } // namespace banners
285 285
286 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_ 286 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698