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

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>
9 #include <vector> 8 #include <vector>
10 9
11 #include "base/macros.h" 10 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/engagement/site_engagement_observer.h" 12 #include "chrome/browser/engagement/site_engagement_observer.h"
14 #include "chrome/browser/installable/installable_logging.h" 13 #include "chrome/browser/installable/installable_logging.h"
15 #include "chrome/browser/installable/installable_manager.h" 14 #include "chrome/browser/installable/installable_manager.h"
16 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
17 #include "mojo/public/cpp/bindings/binding.h" 16 #include "mojo/public/cpp/bindings/binding.h"
18 #include "third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom .h" 17 #include "third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom .h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // The URL of the manifest. 235 // The URL of the manifest.
237 GURL manifest_url_; 236 GURL manifest_url_;
238 237
239 // The manifest object. 238 // The manifest object.
240 content::Manifest manifest_; 239 content::Manifest manifest_;
241 240
242 // The URL of the primary icon. 241 // The URL of the primary icon.
243 GURL primary_icon_url_; 242 GURL primary_icon_url_;
244 243
245 // The primary icon object. 244 // The primary icon object.
246 std::unique_ptr<SkBitmap> primary_icon_; 245 SkBitmap primary_icon_;
247 246
248 // The referrer string (if any) specified in the app URL. Used only for native 247 // The referrer string (if any) specified in the app URL. Used only for native
249 // app banners. 248 // app banners.
250 std::string referrer_; 249 std::string referrer_;
251 250
252 // The current banner pipeline state for this page load. 251 // The current banner pipeline state for this page load.
253 State state_; 252 State state_;
254 253
255 private: 254 private:
256 friend class AppBannerManagerTest; 255 friend class AppBannerManagerTest;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // scoped to the WebContents which they are observing. This allows us to use 308 // scoped to the WebContents which they are observing. This allows us to use
310 // weak pointers for callbacks. 309 // weak pointers for callbacks.
311 base::WeakPtrFactory<AppBannerManager> weak_factory_; 310 base::WeakPtrFactory<AppBannerManager> weak_factory_;
312 311
313 DISALLOW_COPY_AND_ASSIGN(AppBannerManager); 312 DISALLOW_COPY_AND_ASSIGN(AppBannerManager);
314 }; 313 };
315 314
316 } // namespace banners 315 } // namespace banners
317 316
318 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_ 317 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/webapps/add_to_homescreen_manager.cc ('k') | chrome/browser/banners/app_banner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698