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

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

Issue 10010038: Do not show the install prompt for themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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_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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool use_app_installed_bubble_; 133 bool use_app_installed_bubble_;
134 134
135 // The results of parsing manifest_ and icon_data_ go into these two. 135 // The results of parsing manifest_ and icon_data_ go into these two.
136 scoped_ptr<base::DictionaryValue> parsed_manifest_; 136 scoped_ptr<base::DictionaryValue> parsed_manifest_;
137 SkBitmap icon_; 137 SkBitmap icon_;
138 138
139 // A dummy Extension object we create for the purposes of using 139 // A dummy Extension object we create for the purposes of using
140 // ExtensionInstallUI to prompt for confirmation of the install. 140 // ExtensionInstallUI to prompt for confirmation of the install.
141 scoped_refptr<Extension> dummy_extension_; 141 scoped_refptr<Extension> dummy_extension_;
142 142
143 // The class that displays the install prompt.
144 scoped_ptr<ExtensionInstallUI> install_ui_;
145
143 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest3"); 146 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.beginInstallWithManifest3");
144 }; 147 };
145 148
146 class CompleteInstallFunction : public SyncExtensionFunction { 149 class CompleteInstallFunction : public SyncExtensionFunction {
147 virtual bool RunImpl() OVERRIDE; 150 virtual bool RunImpl() OVERRIDE;
148 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall"); 151 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall");
149 }; 152 };
150 153
151 class SilentlyInstallFunction : public AsyncExtensionFunction, 154 class SilentlyInstallFunction : public AsyncExtensionFunction,
152 public WebstoreInstallHelper::Delegate, 155 public WebstoreInstallHelper::Delegate,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void CreateResult(bool webgl_allowed); 213 void CreateResult(bool webgl_allowed);
211 214
212 // A false return value is always valid, but a true one is only valid if full 215 // A false return value is always valid, but a true one is only valid if full
213 // GPU info has been collected in a GPU process. 216 // GPU info has been collected in a GPU process.
214 static bool IsWebGLAllowed(content::GpuDataManager* manager); 217 static bool IsWebGLAllowed(content::GpuDataManager* manager);
215 218
216 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getWebGLStatus"); 219 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getWebGLStatus");
217 }; 220 };
218 221
219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_ 222 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698