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

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

Issue 8375034: Update WebstoreInstaller to be ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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) 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_EXTENSION_WEBSTORE_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // The page does not have permission to call this function. 60 // The page does not have permission to call this function.
61 PERMISSION_DENIED, 61 PERMISSION_DENIED,
62 62
63 // Invalid icon url. 63 // Invalid icon url.
64 INVALID_ICON_URL 64 INVALID_ICON_URL
65 }; 65 };
66 66
67 // Implementing WebstoreInstallHelper::Delegate interface. 67 // Implementing WebstoreInstallHelper::Delegate interface.
68 virtual void OnWebstoreParseSuccess( 68 virtual void OnWebstoreParseSuccess(
69 const std::string& id,
69 const SkBitmap& icon, 70 const SkBitmap& icon,
70 base::DictionaryValue* parsed_manifest) OVERRIDE; 71 base::DictionaryValue* parsed_manifest) OVERRIDE;
71 virtual void OnWebstoreParseFailure( 72 virtual void OnWebstoreParseFailure(
73 const std::string& id,
72 InstallHelperResultCode result_code, 74 InstallHelperResultCode result_code,
73 const std::string& error_message) OVERRIDE; 75 const std::string& error_message) OVERRIDE;
74 76
75 // Implementing ExtensionInstallUI::Delegate interface. 77 // Implementing ExtensionInstallUI::Delegate interface.
76 virtual void InstallUIProceed() OVERRIDE; 78 virtual void InstallUIProceed() OVERRIDE;
77 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 79 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
78 80
79 protected: 81 protected:
80 virtual ~BeginInstallWithManifestFunction(); 82 virtual ~BeginInstallWithManifestFunction();
81 virtual bool RunImpl(); 83 virtual bool RunImpl();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual bool RunImpl(); 118 virtual bool RunImpl();
117 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin"); 119 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin");
118 }; 120 };
119 121
120 class SetStoreLoginFunction : public SyncExtensionFunction { 122 class SetStoreLoginFunction : public SyncExtensionFunction {
121 virtual bool RunImpl(); 123 virtual bool RunImpl();
122 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin"); 124 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin");
123 }; 125 };
124 126
125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ 127 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/extension_webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698