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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/bundle_installer.h" 10 #include "chrome/browser/extensions/bundle_installer.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 WebstoreInstaller::FailureReason reason) OVERRIDE; 192 WebstoreInstaller::FailureReason reason) OVERRIDE;
193 193
194 protected: 194 protected:
195 virtual ~WebstorePrivateCompleteInstallFunction(); 195 virtual ~WebstorePrivateCompleteInstallFunction();
196 196
197 // ExtensionFunction: 197 // ExtensionFunction:
198 virtual bool RunAsync() OVERRIDE; 198 virtual bool RunAsync() OVERRIDE;
199 199
200 private: 200 private:
201 scoped_ptr<WebstoreInstaller::Approval> approval_; 201 scoped_ptr<WebstoreInstaller::Approval> approval_;
202
203 void OnInstallSuccess(const std::string& id);
202 }; 204 };
203 205
204 class WebstorePrivateEnableAppLauncherFunction 206 class WebstorePrivateEnableAppLauncherFunction
205 : public ChromeSyncExtensionFunction { 207 : public ChromeSyncExtensionFunction {
206 public: 208 public:
207 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher", 209 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher",
208 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER) 210 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER)
209 211
210 WebstorePrivateEnableAppLauncherFunction(); 212 WebstorePrivateEnableAppLauncherFunction();
211 213
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 SigninManagerBase* signin_manager_; 341 SigninManagerBase* signin_manager_;
340 342
341 // Tracks changes to sign-in state. Used to notify the page when an existing 343 // Tracks changes to sign-in state. Used to notify the page when an existing
342 // in-progress sign-in completes, either with success or failure. 344 // in-progress sign-in completes, either with success or failure.
343 scoped_ptr<SigninTracker> signin_tracker_; 345 scoped_ptr<SigninTracker> signin_tracker_;
344 }; 346 };
345 347
346 } // namespace extensions 348 } // namespace extensions
347 349
348 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 350 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « chrome/browser/apps/shortcut_manager.cc ('k') | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698