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

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

Issue 2854763002: Revert of Use new SafeBrowsing redirect tracking code in CWS pings. (Closed)
Patch Set: Created 3 years, 7 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
55 // Implementations WebstoreStandaloneInstaller Template Method's hooks. 52 // Implementations WebstoreStandaloneInstaller Template Method's hooks.
56 std::string GetJsonPostData() override; 53 std::string GetJsonPostData() override;
57 bool CheckRequestorAlive() const override; 54 bool CheckRequestorAlive() const override;
58 const GURL& GetRequestorURL() const override; 55 const GURL& GetRequestorURL() const override;
59 bool ShouldShowPostInstallUI() const override; 56 bool ShouldShowPostInstallUI() const override;
60 bool ShouldShowAppInstalledBubble() const override; 57 bool ShouldShowAppInstalledBubble() const override;
61 content::WebContents* GetWebContents() const override; 58 content::WebContents* GetWebContents() const override;
62 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 59 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
63 const override; 60 const override;
64 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, 61 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
(...skipping 15 matching lines...) Expand all
80 // This corresponds to the frame that initiated the install request. 77 // This corresponds to the frame that initiated the install request.
81 content::RenderFrameHost* host_; 78 content::RenderFrameHost* host_;
82 GURL requestor_url_; 79 GURL requestor_url_;
83 80
84 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 81 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
85 }; 82 };
86 83
87 } // namespace extensions 84 } // namespace extensions
88 85
89 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 86 #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