| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FAKE_CWS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 int GetUpdateCheckCountAndReset(); | 48 int GetUpdateCheckCountAndReset(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void SetupWebStoreURL(const GURL& test_server_url); | 51 void SetupWebStoreURL(const GURL& test_server_url); |
| 52 void OverrideGalleryCommandlineSwitches(); | 52 void OverrideGalleryCommandlineSwitches(); |
| 53 | 53 |
| 54 bool GetUpdateCheckContent(const std::vector<std::string>& ids, | 54 bool GetUpdateCheckContent(const std::vector<std::string>& ids, |
| 55 std::string* update_check_content); | 55 std::string* update_check_content); |
| 56 | 56 |
| 57 // Request handler for kiosk app update server. | 57 // Request handler for kiosk app update server. |
| 58 scoped_ptr<net::test_server::HttpResponse> HandleRequest( | 58 std::unique_ptr<net::test_server::HttpResponse> HandleRequest( |
| 59 const net::test_server::HttpRequest& request); | 59 const net::test_server::HttpRequest& request); |
| 60 | 60 |
| 61 GURL web_store_url_; | 61 GURL web_store_url_; |
| 62 | 62 |
| 63 std::string has_update_template_; | 63 std::string has_update_template_; |
| 64 std::string no_update_template_; | 64 std::string no_update_template_; |
| 65 std::string update_check_end_point_; | 65 std::string update_check_end_point_; |
| 66 | 66 |
| 67 // Map keyed by app_id to app_update_content. | 67 // Map keyed by app_id to app_update_content. |
| 68 std::map<std::string, std::string> id_to_update_check_content_map_; | 68 std::map<std::string, std::string> id_to_update_check_content_map_; |
| 69 int update_check_count_; | 69 int update_check_count_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(FakeCWS); | 71 DISALLOW_COPY_AND_ASSIGN(FakeCWS); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace chromeos | 74 } // namespace chromeos |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_FAKE_CWS_H_ |
| OLD | NEW |