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_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 private: | 73 private: |
74 virtual ~WebstoreInstallHelper(); | 74 virtual ~WebstoreInstallHelper(); |
75 | 75 |
76 void StartWorkOnIOThread(); | 76 void StartWorkOnIOThread(); |
77 void StartFetchedImageDecode(); | 77 void StartFetchedImageDecode(); |
78 void ReportResultsIfComplete(); | 78 void ReportResultsIfComplete(); |
79 void ReportResultFromUIThread(); | 79 void ReportResultFromUIThread(); |
80 | 80 |
81 // Implementing the content::URLFetcherDelegate interface. | 81 // Implementing the content::URLFetcherDelegate interface. |
82 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; | 82 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; |
83 | 83 |
84 // Implementing pieces of the UtilityProcessHostClient interface. | 84 // Implementing pieces of the UtilityProcessHostClient interface. |
85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
86 | 86 |
87 // Message handlers. | 87 // Message handlers. |
88 void OnDecodeImageSucceeded(const SkBitmap& decoded_image); | 88 void OnDecodeImageSucceeded(const SkBitmap& decoded_image); |
89 void OnDecodeImageFailed(); | 89 void OnDecodeImageFailed(); |
90 void OnJSONParseSucceeded(const base::ListValue& wrapper); | 90 void OnJSONParseSucceeded(const base::ListValue& wrapper); |
91 void OnJSONParseFailed(const std::string& error_message); | 91 void OnJSONParseFailed(const std::string& error_message); |
92 | 92 |
(...skipping 30 matching lines...) Expand all Loading... |
123 | 123 |
124 // A details string for keeping track of any errors. | 124 // A details string for keeping track of any errors. |
125 std::string error_; | 125 std::string error_; |
126 | 126 |
127 // A code to distinguish between an error with the icon, and an error with the | 127 // A code to distinguish between an error with the icon, and an error with the |
128 // manifest. | 128 // manifest. |
129 Delegate::InstallHelperResultCode parse_error_; | 129 Delegate::InstallHelperResultCode parse_error_; |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 132 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
OLD | NEW |