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

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

Issue 2466263010: Include referrer chain with inline install requests
Patch Set: Created 4 years, 1 month 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_WEBSTORE_STANDALONE_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // is safe to call from OnManifestParsed() onwards. The manifest may be 88 // is safe to call from OnManifestParsed() onwards. The manifest may be
89 // invalid, thus the caller must check that the return value is not NULL. 89 // invalid, thus the caller must check that the return value is not NULL.
90 scoped_refptr<const Extension> GetLocalizedExtensionForDisplay(); 90 scoped_refptr<const Extension> GetLocalizedExtensionForDisplay();
91 91
92 // Template Method's hooks to be implemented by subclasses. 92 // Template Method's hooks to be implemented by subclasses.
93 93
94 // Called when this install is about to be registered with the InstallTracker. 94 // Called when this install is about to be registered with the InstallTracker.
95 // Allows subclasses to set properties of the install data. 95 // Allows subclasses to set properties of the install data.
96 virtual void InitInstallData(ActiveInstallData* install_data) const; 96 virtual void InitInstallData(ActiveInstallData* install_data) const;
97 97
98 // Gives subclasses an opportunity to customize the webstore data request
99 // (eg, add post data) before sending. The default implementation starts
100 // the request; subclasses overriding this are responsible for calling Start
101 // on the |fetcher| themselves once they are ready for it.
102 virtual void OnBeforeWebstoreDataRequest(WebstoreDataFetcher* fetcher);
103
98 // Called at certain check points of the workflow to decide whether it makes 104 // Called at certain check points of the workflow to decide whether it makes
99 // sense to proceed with installation. A requestor can be a website that 105 // sense to proceed with installation. A requestor can be a website that
100 // initiated an inline installation, or a command line option. 106 // initiated an inline installation, or a command line option.
101 virtual bool CheckRequestorAlive() const = 0; 107 virtual bool CheckRequestorAlive() const = 0;
102 108
103 // Requestor's URL, if any. Should be an empty GURL if URL is meaningless 109 // Requestor's URL, if any. Should be an empty GURL if URL is meaningless
104 // (e.g. for a command line option). 110 // (e.g. for a command line option).
105 virtual const GURL& GetRequestorURL() const = 0; 111 virtual const GURL& GetRequestorURL() const = 0;
106 112
107 // Should a new tab be opened after installation to show the newly installed 113 // Should a new tab be opened after installation to show the newly installed
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Created by ShowInstallUI() when a prompt is shown (if 252 // Created by ShowInstallUI() when a prompt is shown (if
247 // the implementor returns a non-NULL in CreateInstallPrompt()). 253 // the implementor returns a non-NULL in CreateInstallPrompt()).
248 scoped_refptr<Extension> localized_extension_for_display_; 254 scoped_refptr<Extension> localized_extension_for_display_;
249 255
250 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); 256 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller);
251 }; 257 };
252 258
253 } // namespace extensions 259 } // namespace extensions
254 260
255 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ 261 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_inline_installer.cc ('k') | chrome/browser/extensions/webstore_standalone_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698