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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Minor refactor. Created 4 years, 2 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 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 namespace IPC { 18 namespace IPC {
18 class Message; 19 class Message;
19 } 20 }
20 21
21 class GURL; 22 class GURL;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Whether the user has requested that a shortcut be added while a fetch was 75 // Whether the user has requested that a shortcut be added while a fetch was
75 // in progress. 76 // in progress.
76 bool add_shortcut_pending_; 77 bool add_shortcut_pending_;
77 78
78 // Whether the site is WebAPK-compatible. 79 // Whether the site is WebAPK-compatible.
79 bool is_webapk_compatible_; 80 bool is_webapk_compatible_;
80 81
81 // Fetches data required to add a shortcut. 82 // Fetches data required to add a shortcut.
82 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; 83 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_;
83 84
85 // Service to send events to the renderer.
86 blink::mojom::InstallationServicePtr installation_service_;
87
84 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager); 88 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager);
85 }; 89 };
86 90
87 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 91 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698