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

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

Issue 10834082: Pass through Extension::FROM_WEBSTORE to Extension::Create when installing an (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add REQUIRE_KEY Created 8 years, 4 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
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_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual void InstallUIAbort(bool user_initiated) = 0; 152 virtual void InstallUIAbort(bool user_initiated) = 0;
153 153
154 protected: 154 protected:
155 virtual ~Delegate() {} 155 virtual ~Delegate() {}
156 }; 156 };
157 157
158 // Creates a dummy extension from the |manifest|, replacing the name and 158 // Creates a dummy extension from the |manifest|, replacing the name and
159 // description with the localizations if provided. 159 // description with the localizations if provided.
160 static scoped_refptr<extensions::Extension> GetLocalizedExtensionForDisplay( 160 static scoped_refptr<extensions::Extension> GetLocalizedExtensionForDisplay(
161 const base::DictionaryValue* manifest, 161 const base::DictionaryValue* manifest,
162 int flags, // Extension::InitFromValueFlags
162 const std::string& id, 163 const std::string& id,
163 const std::string& localized_name, 164 const std::string& localized_name,
164 const std::string& localized_description, 165 const std::string& localized_description,
165 std::string* error); 166 std::string* error);
166 167
167 // Creates a prompt with a parent window and a navigator that can be used to 168 // Creates a prompt with a parent window and a navigator that can be used to
168 // load pages. 169 // load pages.
169 ExtensionInstallPrompt(gfx::NativeWindow parent, 170 ExtensionInstallPrompt(gfx::NativeWindow parent,
170 content::PageNavigator* navigator, 171 content::PageNavigator* navigator,
171 Profile* profile); 172 Profile* profile);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership. 319 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership.
319 // TODO(beng): remove this once various extensions types are weaned from 320 // TODO(beng): remove this once various extensions types are weaned from
320 // Browser. 321 // Browser.
321 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser( 322 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser(
322 Browser* browser); 323 Browser* browser);
323 324
324 } // namespace chrome 325 } // namespace chrome
325 326
326 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 327 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698