| OLD | NEW |
| 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/jni_weak_ref.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Points to the Java object. | 63 // Points to the Java object. |
| 64 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 64 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
| 65 | 65 |
| 66 // Whether the user has requested that a shortcut be added while a fetch was | 66 // Whether the user has requested that a shortcut be added while a fetch was |
| 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 content::BrowserContext* browser_context_; |
| 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDialogHelper); | 75 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDialogHelper); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_ | 78 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DIALOG_HELPER_H_ |
| OLD | NEW |