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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_data.h

Issue 2132663002: kiosk: Add status report for os update and running app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move clean up code from TearDown to dtor since set up code is in ctor now and fix DeviceStatusColle… Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698