| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 virtual ~WebstoreInstallHelper(); | 79 virtual ~WebstoreInstallHelper(); |
| 80 | 80 |
| 81 void StartWorkOnIOThread(); | 81 void StartWorkOnIOThread(); |
| 82 void StartFetchedImageDecode(); | 82 void StartFetchedImageDecode(); |
| 83 void ReportResultsIfComplete(); | 83 void ReportResultsIfComplete(); |
| 84 void ReportResultFromUIThread(); | 84 void ReportResultFromUIThread(); |
| 85 | 85 |
| 86 // Implementing the net::URLFetcherDelegate interface. | 86 // Implementing the net::URLFetcherDelegate interface. |
| 87 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 87 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 88 | 88 |
| 89 // Implementing pieces of the UtilityProcessHostClient interface. | 89 // Implementing pieces of the UtilityProcessHostClient interface. |
| 90 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 90 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 91 | 91 |
| 92 // Message handlers. | 92 // Message handlers. |
| 93 void OnDecodeImageSucceeded(const SkBitmap& decoded_image); | 93 void OnDecodeImageSucceeded(const SkBitmap& decoded_image); |
| 94 void OnDecodeImageFailed(); | 94 void OnDecodeImageFailed(); |
| 95 void OnJSONParseSucceeded(const base::ListValue& wrapper); | 95 void OnJSONParseSucceeded(const base::ListValue& wrapper); |
| 96 void OnJSONParseFailed(const std::string& error_message); | 96 void OnJSONParseFailed(const std::string& error_message); |
| 97 | 97 |
| 98 // The client who we'll report results back to. | 98 // The client who we'll report results back to. |
| 99 Delegate* delegate_; | 99 Delegate* delegate_; |
| 100 | 100 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 130 std::string error_; | 130 std::string error_; |
| 131 | 131 |
| 132 // A code to distinguish between an error with the icon, and an error with the | 132 // A code to distinguish between an error with the icon, and an error with the |
| 133 // manifest. | 133 // manifest. |
| 134 Delegate::InstallHelperResultCode parse_error_; | 134 Delegate::InstallHelperResultCode parse_error_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace extensions | 137 } // namespace extensions |
| 138 | 138 |
| 139 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
| OLD | NEW |