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

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

Issue 6992047: Change the web store private install API to accept a localized extension name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, removed test files I added in separate CL Created 9 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) 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual bool RunImpl(); 99 virtual bool RunImpl();
100 100
101 // Sets the result_ as a string based on |code|. 101 // Sets the result_ as a string based on |code|.
102 void SetResult(ResultCode code); 102 void SetResult(ResultCode code);
103 103
104 private: 104 private:
105 // These store the input parameters to the function. 105 // These store the input parameters to the function.
106 std::string id_; 106 std::string id_;
107 std::string manifest_; 107 std::string manifest_;
108 std::string icon_data_; 108 std::string icon_data_;
109 std::string localized_name_;
109 110
110 // The results of parsing manifest_ and icon_data_ go into these two. 111 // The results of parsing manifest_ and icon_data_ go into these two.
111 scoped_ptr<DictionaryValue> parsed_manifest_; 112 scoped_ptr<DictionaryValue> parsed_manifest_;
112 SkBitmap icon_; 113 SkBitmap icon_;
113 114
114 // A dummy Extension object we create for the purposes of using 115 // A dummy Extension object we create for the purposes of using
115 // ExtensionInstallUI to prompt for confirmation of the install. 116 // ExtensionInstallUI to prompt for confirmation of the install.
116 scoped_refptr<Extension> dummy_extension_; 117 scoped_refptr<Extension> dummy_extension_;
117 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest"); 118 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest2");
118 }; 119 };
119 120
120 class CompleteInstallFunction : public SyncExtensionFunction { 121 class CompleteInstallFunction : public SyncExtensionFunction {
121 virtual bool RunImpl(); 122 virtual bool RunImpl();
122 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); 123 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall");
123 }; 124 };
124 125
125 class GetBrowserLoginFunction : public SyncExtensionFunction { 126 class GetBrowserLoginFunction : public SyncExtensionFunction {
126 virtual bool RunImpl(); 127 virtual bool RunImpl();
127 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin"); 128 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin");
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Are we waiting for a token available notification? 163 // Are we waiting for a token available notification?
163 bool waiting_for_token_; 164 bool waiting_for_token_;
164 165
165 // Used for listening for TokenService notifications. 166 // Used for listening for TokenService notifications.
166 NotificationRegistrar registrar_; 167 NotificationRegistrar registrar_;
167 168
168 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.promptBrowserLogin"); 169 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.promptBrowserLogin");
169 }; 170 };
170 171
171 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ 172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.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