| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/extensions/webstore_data_fetcher_delegate.h" | 15 #include "chrome/browser/extensions/webstore_data_fetcher_delegate.h" |
| 15 #include "components/signin/core/account_id/account_id.h" | 16 #include "components/signin/core/account_id/account_id.h" |
| 16 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const std::string& name() const { return name_; } | 80 const std::string& name() const { return name_; } |
| 80 const GURL& update_url() const { return update_url_; } | 81 const GURL& update_url() const { return update_url_; } |
| 81 const gfx::ImageSkia& icon() const { return icon_; } | 82 const gfx::ImageSkia& icon() const { return icon_; } |
| 82 const std::string& required_platform_version() const { | 83 const std::string& required_platform_version() const { |
| 83 return required_platform_version_; | 84 return required_platform_version_; |
| 84 } | 85 } |
| 85 Status status() const { return status_; } | 86 Status status() const { return status_; } |
| 86 | 87 |
| 87 void SetStatusForTest(Status status); | 88 void SetStatusForTest(Status status); |
| 88 | 89 |
| 90 static std::unique_ptr<KioskAppData> CreateForTest( |
| 91 KioskAppDataDelegate* delegate, |
| 92 const std::string& app_id, |
| 93 const AccountId& account_id, |
| 94 const GURL& update_url, |
| 95 const std::string& required_platform_version); |
| 96 |
| 89 private: | 97 private: |
| 90 class CrxLoader; | 98 class CrxLoader; |
| 91 class IconLoader; | 99 class IconLoader; |
| 92 class WebstoreDataParser; | 100 class WebstoreDataParser; |
| 93 | 101 |
| 94 void SetStatus(Status status); | 102 void SetStatus(Status status); |
| 95 | 103 |
| 96 // Returns URLRequestContextGetter to use for fetching web store data. | 104 // Returns URLRequestContextGetter to use for fetching web store data. |
| 97 net::URLRequestContextGetter* GetRequestContextGetter(); | 105 net::URLRequestContextGetter* GetRequestContextGetter(); |
| 98 | 106 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 base::FilePath icon_path_; | 165 base::FilePath icon_path_; |
| 158 | 166 |
| 159 base::FilePath crx_file_; | 167 base::FilePath crx_file_; |
| 160 | 168 |
| 161 DISALLOW_COPY_AND_ASSIGN(KioskAppData); | 169 DISALLOW_COPY_AND_ASSIGN(KioskAppData); |
| 162 }; | 170 }; |
| 163 | 171 |
| 164 } // namespace chromeos | 172 } // namespace chromeos |
| 165 | 173 |
| 166 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ | 174 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ |
| OLD | NEW |