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

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

Issue 2655823002: Include referrer chain with inline install requests. (Closed)
Patch Set: Add missing comment. Created 3 years, 10 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_WEBSTORE_INLINE_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/extensions/webstore_standalone_installer.h" 13 #include "chrome/browser/extensions/webstore_standalone_installer.h"
13 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
14 15
15 namespace content { 16 namespace content {
16 class WebContents; 17 class WebContents;
17 } 18 }
(...skipping 24 matching lines...) Expand all
42 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data, 43 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data,
43 const GURL& requestor_url, 44 const GURL& requestor_url,
44 std::string* error); 45 std::string* error);
45 46
46 protected: 47 protected:
47 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; 48 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>;
48 49
49 ~WebstoreInlineInstaller() override; 50 ~WebstoreInlineInstaller() override;
50 51
51 // Implementations WebstoreStandaloneInstaller Template Method's hooks. 52 // Implementations WebstoreStandaloneInstaller Template Method's hooks.
53 std::string GetJsonPostData() override;
52 bool CheckRequestorAlive() const override; 54 bool CheckRequestorAlive() const override;
53 const GURL& GetRequestorURL() const override; 55 const GURL& GetRequestorURL() const override;
54 bool ShouldShowPostInstallUI() const override; 56 bool ShouldShowPostInstallUI() const override;
55 bool ShouldShowAppInstalledBubble() const override; 57 bool ShouldShowAppInstalledBubble() const override;
56 content::WebContents* GetWebContents() const override; 58 content::WebContents* GetWebContents() const override;
57 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 59 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
58 const override; 60 const override;
59 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, 61 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
60 std::string* error) const override; 62 std::string* error) const override;
61 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, 63 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data,
(...skipping 14 matching lines...) Expand all
76 // This corresponds to the frame that initiated the install request. 78 // This corresponds to the frame that initiated the install request.
77 content::RenderFrameHost* host_; 79 content::RenderFrameHost* host_;
78 GURL requestor_url_; 80 GURL requestor_url_;
79 81
80 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 82 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
81 }; 83 };
82 84
83 } // namespace extensions 85 } // namespace extensions
84 86
85 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 87 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW
« 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