| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CUSTOMIZATION_DOCUMENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 // C-tor for test construction. | 216 // C-tor for test construction. |
| 217 explicit ServicesCustomizationDocument(const std::string& manifest); | 217 explicit ServicesCustomizationDocument(const std::string& manifest); |
| 218 | 218 |
| 219 virtual ~ServicesCustomizationDocument(); | 219 virtual ~ServicesCustomizationDocument(); |
| 220 | 220 |
| 221 // Save applied state in machine settings. | 221 // Save applied state in machine settings. |
| 222 static void SetApplied(bool val); | 222 static void SetApplied(bool val); |
| 223 | 223 |
| 224 // Overriden from CustomizationDocument: | 224 // Overriden from CustomizationDocument: |
| 225 virtual bool LoadManifestFromString(const std::string& manifest) OVERRIDE; | 225 virtual bool LoadManifestFromString(const std::string& manifest) override; |
| 226 | 226 |
| 227 // Overriden from net::URLFetcherDelegate: | 227 // Overriden from net::URLFetcherDelegate: |
| 228 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 228 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 229 | 229 |
| 230 // Initiate file fetching. Wait for online status. | 230 // Initiate file fetching. Wait for online status. |
| 231 void StartFileFetch(); | 231 void StartFileFetch(); |
| 232 | 232 |
| 233 // Initiate file fetching. Don't wait for online status. | 233 // Initiate file fetching. Don't wait for online status. |
| 234 void DoStartFileFetch(); | 234 void DoStartFileFetch(); |
| 235 | 235 |
| 236 // Executes on FILE thread and reads file to string. | 236 // Executes on FILE thread and reads file to string. |
| 237 static void ReadFileInBackground( | 237 static void ReadFileInBackground( |
| 238 base::WeakPtr<ServicesCustomizationDocument> self, | 238 base::WeakPtr<ServicesCustomizationDocument> self, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 325 |
| 326 // Weak factory for callbacks. | 326 // Weak factory for callbacks. |
| 327 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; | 327 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; |
| 328 | 328 |
| 329 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); | 329 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 } // namespace chromeos | 332 } // namespace chromeos |
| 333 | 333 |
| 334 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ | 334 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
| OLD | NEW |