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

Unified Diff: chrome/browser/extensions/webstore_inline_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_inline_installer.h
diff --git a/chrome/browser/extensions/webstore_inline_installer.h b/chrome/browser/extensions/webstore_inline_installer.h
index 9e11fa42e630eb0dff533f2c5aa7519dfe3bb00e..18b11f7e048a9b4db7a2b34468585343cfbf8aab 100644
--- a/chrome/browser/extensions/webstore_inline_installer.h
+++ b/chrome/browser/extensions/webstore_inline_installer.h
@@ -5,11 +5,14 @@
#ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
#define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/extensions/webstore_standalone_installer.h"
+#include "components/history/core/browser/history_types.h"
#include "content/public/browser/web_contents_observer.h"
namespace content {
@@ -49,6 +52,7 @@ class WebstoreInlineInstaller : public WebstoreStandaloneInstaller,
~WebstoreInlineInstaller() override;
// Implementations WebstoreStandaloneInstaller Template Method's hooks.
+ void OnBeforeWebstoreDataRequest(WebstoreDataFetcher* fetcher) override;
bool CheckRequestorAlive() const override;
const GURL& GetRequestorURL() const override;
bool ShouldShowPostInstallUI() const override;
@@ -73,10 +77,15 @@ class WebstoreInlineInstaller : public WebstoreStandaloneInstaller,
static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url,
const std::string& verified_site);
+ void StartWebstoreDataRequest(
+ WebstoreDataFetcher* fetcher, const history::RedirectList* redirect_list);
+
// This corresponds to the frame that initiated the install request.
content::RenderFrameHost* host_;
GURL requestor_url_;
+ base::CancelableTaskTracker request_tracker_; // For HistoryService lookup.
+
DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
};
« no previous file with comments | « chrome/browser/extensions/webstore_data_fetcher.cc ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698