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

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

Issue 110373007: Delay loading the NTP after sign in until MergeSession has been performed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in chromeos Created 6 years, 11 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_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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // ExtensionFunction: 137 // ExtensionFunction:
138 virtual bool RunImpl() OVERRIDE; 138 virtual bool RunImpl() OVERRIDE;
139 139
140 // Sets the result_ as a string based on |code|. 140 // Sets the result_ as a string based on |code|.
141 void SetResultCode(ResultCode code); 141 void SetResultCode(ResultCode code);
142 142
143 private: 143 private:
144 // SigninTracker::Observer override. 144 // SigninTracker::Observer override.
145 virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE; 145 virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE;
146 virtual void SigninSuccess() OVERRIDE; 146 virtual void SigninSuccess() OVERRIDE;
147 virtual void MergeSessionComplete(
148 const GoogleServiceAuthError& error) OVERRIDE;
147 149
148 // Called when signin is complete or not needed. 150 // Called when signin is complete or not needed.
149 void SigninCompletedOrNotNeeded(); 151 void SigninCompletedOrNotNeeded();
150 152
151 const char* ResultCodeToString(ResultCode code); 153 const char* ResultCodeToString(ResultCode code);
152 154
153 // These store the input parameters to the function. 155 // These store the input parameters to the function.
154 scoped_ptr<api::webstore_private::BeginInstallWithManifest3::Params> params_; 156 scoped_ptr<api::webstore_private::BeginInstallWithManifest3::Params> params_;
155 157
156 // The results of parsing manifest_ and icon_data_ go into these two. 158 // The results of parsing manifest_ and icon_data_ go into these two.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 protected: 300 protected:
299 virtual ~WebstorePrivateIsInIncognitoModeFunction() {} 301 virtual ~WebstorePrivateIsInIncognitoModeFunction() {}
300 302
301 // ExtensionFunction: 303 // ExtensionFunction:
302 virtual bool RunImpl() OVERRIDE; 304 virtual bool RunImpl() OVERRIDE;
303 }; 305 };
304 306
305 } // namespace extensions 307 } // namespace extensions
306 308
307 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 309 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698