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

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

Issue 2779643002: Use new SafeBrowsing redirect tracking code in CWS pings. (Closed)
Patch Set: Devlin feedback + rebase. Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // given |webstore_data|. 42 // given |webstore_data|.
43 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data, 43 static bool IsRequestorPermitted(const base::DictionaryValue& webstore_data,
44 const GURL& requestor_url, 44 const GURL& requestor_url,
45 std::string* error); 45 std::string* error);
46 46
47 protected: 47 protected:
48 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; 48 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>;
49 49
50 ~WebstoreInlineInstaller() override; 50 ~WebstoreInlineInstaller() override;
51 51
52 // Returns whether to use the new navigation event tracker.
53 virtual bool SafeBrowsingNavigationEventsEnabled() const;
54
52 // Implementations WebstoreStandaloneInstaller Template Method's hooks. 55 // Implementations WebstoreStandaloneInstaller Template Method's hooks.
53 std::string GetJsonPostData() override; 56 std::string GetJsonPostData() override;
54 bool CheckRequestorAlive() const override; 57 bool CheckRequestorAlive() const override;
55 const GURL& GetRequestorURL() const override; 58 const GURL& GetRequestorURL() const override;
56 bool ShouldShowPostInstallUI() const override; 59 bool ShouldShowPostInstallUI() const override;
57 bool ShouldShowAppInstalledBubble() const override; 60 bool ShouldShowAppInstalledBubble() const override;
58 content::WebContents* GetWebContents() const override; 61 content::WebContents* GetWebContents() const override;
59 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 62 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
60 const override; 63 const override;
61 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, 64 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
(...skipping 15 matching lines...) Expand all
77 // This corresponds to the frame that initiated the install request. 80 // This corresponds to the frame that initiated the install request.
78 content::RenderFrameHost* host_; 81 content::RenderFrameHost* host_;
79 GURL requestor_url_; 82 GURL requestor_url_;
80 83
81 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 84 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
82 }; 85 };
83 86
84 } // namespace extensions 87 } // namespace extensions
85 88
86 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 89 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698