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

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

Issue 8375034: Update WebstoreInstaller to be ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_INLINE_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // content::URLFetcherDelegate interface implementation. 72 // content::URLFetcherDelegate interface implementation.
73 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE; 73 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
74 74
75 // Client callbacks for SafeWebstoreResponseParser when parsing is complete. 75 // Client callbacks for SafeWebstoreResponseParser when parsing is complete.
76 void OnWebstoreResponseParseSuccess(DictionaryValue* webstore_data); 76 void OnWebstoreResponseParseSuccess(DictionaryValue* webstore_data);
77 void OnWebstoreResponseParseFailure(const std::string& error); 77 void OnWebstoreResponseParseFailure(const std::string& error);
78 78
79 // WebstoreInstallHelper::Delegate interface implementation. 79 // WebstoreInstallHelper::Delegate interface implementation.
80 virtual void OnWebstoreParseSuccess( 80 virtual void OnWebstoreParseSuccess(
81 const std::string& id,
81 const SkBitmap& icon, 82 const SkBitmap& icon,
82 base::DictionaryValue* parsed_manifest) OVERRIDE; 83 base::DictionaryValue* parsed_manifest) OVERRIDE;
83 virtual void OnWebstoreParseFailure( 84 virtual void OnWebstoreParseFailure(
85 const std::string& id,
84 InstallHelperResultCode result_code, 86 InstallHelperResultCode result_code,
85 const std::string& error_message) OVERRIDE; 87 const std::string& error_message) OVERRIDE;
86 88
87 // ExtensionInstallUI::Delegate interface implementation. 89 // ExtensionInstallUI::Delegate interface implementation.
88 virtual void InstallUIProceed() OVERRIDE; 90 virtual void InstallUIProceed() OVERRIDE;
89 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 91 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
90 92
91 // TabContentsObserver interface implementation. 93 // TabContentsObserver interface implementation.
92 virtual void TabContentsDestroyed(TabContents* tab_contents) OVERRIDE; 94 virtual void TabContentsDestroyed(TabContents* tab_contents) OVERRIDE;
93 95
(...skipping 20 matching lines...) Expand all
114 int rating_count_; 116 int rating_count_;
115 scoped_ptr<DictionaryValue> webstore_data_; 117 scoped_ptr<DictionaryValue> webstore_data_;
116 scoped_ptr<DictionaryValue> manifest_; 118 scoped_ptr<DictionaryValue> manifest_;
117 scoped_refptr<Extension> dummy_extension_; 119 scoped_refptr<Extension> dummy_extension_;
118 SkBitmap icon_; 120 SkBitmap icon_;
119 121
120 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 122 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
121 }; 123 };
122 124
123 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 125 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webstore_private_api.cc ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698