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

Side by Side Diff: chrome/browser/extensions/webstore_install_helper.h

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_inline_installer.cc ('k') | chrome/browser/extensions/webstore_install_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698