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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Blink style. Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h" 11 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h"
12 #include "third_party/WebKit/public/platform/modules/installation/installation.m ojom.h"
12 13
13 namespace content { 14 namespace content {
14 class WebContents; 15 class WebContents;
15 } 16 }
16 17
17 class GURL; 18 class GURL;
18 class SkBitmap; 19 class SkBitmap;
19 struct ShortcutInfo; 20 struct ShortcutInfo;
20 21
21 // AddToHomescreenManager is the C++ counterpart of 22 // AddToHomescreenManager is the C++ counterpart of
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Whether the user has requested that a shortcut be added while a fetch was 71 // Whether the user has requested that a shortcut be added while a fetch was
71 // in progress. 72 // in progress.
72 bool add_shortcut_pending_; 73 bool add_shortcut_pending_;
73 74
74 // Whether the site is WebAPK-compatible. 75 // Whether the site is WebAPK-compatible.
75 bool is_webapk_compatible_; 76 bool is_webapk_compatible_;
76 77
77 // Fetches data required to add a shortcut. 78 // Fetches data required to add a shortcut.
78 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; 79 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_;
79 80
81 // Service to send events to the renderer.
82 blink::mojom::InstallationServicePtr installation_service_;
dominickn 2016/12/09 06:08:17 Doesn't need to be a member, use a local variable
Matt Giuca 2016/12/12 04:28:19 Acknowledged.
83
80 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager); 84 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager);
81 }; 85 };
82 86
83 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 87 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698