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

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

Issue 2230773002: Migrate add to homescreen data fetcher to use InstallableManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More tidying Created 4 years, 4 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_DIALOG_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_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/shortcut_info.h"
12 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h" 11 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h"
13 #include "content/public/common/manifest.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
14 13
15 namespace content { 14 namespace content {
16 class WebContents; 15 class WebContents;
17 } // namespace content 16 }
18 17
19 namespace IPC { 18 namespace IPC {
20 class Message; 19 class Message;
21 } 20 }
22 21
23 class GURL; 22 class GURL;
23 struct ShortcutInfo;
24 24
25 // AddToHomescreenDialogHelper is the C++ counterpart of 25 // AddToHomescreenDialogHelper is the C++ counterpart of
26 // org.chromium.chrome.browser's AddToHomescreenDialogHelper in Java. The object 26 // org.chromium.chrome.browser's AddToHomescreenDialogHelper in Java. The object
27 // is owned by the Java object. It is created from there via a JNI (Initialize) 27 // is owned by the Java object. It is created from there via a JNI (Initialize)
28 // call and MUST BE DESTROYED via Destroy(). 28 // call and MUST BE DESTROYED via Destroy().
29 class AddToHomescreenDialogHelper : 29 class AddToHomescreenDialogHelper :
30 public AddToHomescreenDataFetcher::Observer { 30 public AddToHomescreenDataFetcher::Observer {
31 public: 31 public:
32 AddToHomescreenDialogHelper(JNIEnv* env, 32 AddToHomescreenDialogHelper(JNIEnv* env,
33 jobject obj, 33 jobject obj,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // in progress. 67 // in progress.
68 bool add_shortcut_pending_; 68 bool add_shortcut_pending_;
69 69
70 // Fetches data required to add a shortcut. 70 // Fetches data required to add a shortcut.
71 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; 71 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDialogHelper); 73 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDialogHelper);
74 }; 74 };
75 75
76 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_ 76 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698