| OLD | NEW |
| 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 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class WebContents; | 14 class WebContents; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace IPC { | |
| 18 class Message; | |
| 19 } | |
| 20 | |
| 21 class GURL; | 17 class GURL; |
| 22 class SkBitmap; | 18 class SkBitmap; |
| 23 struct ShortcutInfo; | 19 struct ShortcutInfo; |
| 24 | 20 |
| 25 // AddToHomescreenManager is the C++ counterpart of | 21 // AddToHomescreenManager is the C++ counterpart of |
| 26 // org.chromium.chrome.browser's AddToHomescreenManager in Java. The object | 22 // org.chromium.chrome.browser's AddToHomescreenManager in Java. The object |
| 27 // is owned by the Java object. It is created from there via a JNI | 23 // is owned by the Java object. It is created from there via a JNI |
| 28 // (InitializeAndStart) call and MUST BE DESTROYED via Destroy(). | 24 // (InitializeAndStart) call and MUST BE DESTROYED via Destroy(). |
| 29 class AddToHomescreenManager : public AddToHomescreenDataFetcher::Observer { | 25 class AddToHomescreenManager : public AddToHomescreenDataFetcher::Observer { |
| 30 public: | 26 public: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Whether the site is WebAPK-compatible. | 74 // Whether the site is WebAPK-compatible. |
| 79 bool is_webapk_compatible_; | 75 bool is_webapk_compatible_; |
| 80 | 76 |
| 81 // Fetches data required to add a shortcut. | 77 // Fetches data required to add a shortcut. |
| 82 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; | 78 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; |
| 83 | 79 |
| 84 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager); | 80 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager); |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ | 83 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ |
| OLD | NEW |