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

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

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts Created 6 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
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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 CreateInstallPrompt() const OVERRIDE; 51 CreateInstallPrompt() const OVERRIDE;
52 virtual bool CheckInlineInstallPermitted( 52 virtual bool CheckInlineInstallPermitted(
53 const base::DictionaryValue& webstore_data, 53 const base::DictionaryValue& webstore_data,
54 std::string* error) const OVERRIDE; 54 std::string* error) const OVERRIDE;
55 virtual bool CheckRequestorPermitted( 55 virtual bool CheckRequestorPermitted(
56 const base::DictionaryValue& webstore_data, 56 const base::DictionaryValue& webstore_data,
57 std::string* error) const OVERRIDE; 57 std::string* error) const OVERRIDE;
58 58
59 private: 59 private:
60 // content::WebContentsObserver interface implementation. 60 // content::WebContentsObserver interface implementation.
61 virtual void WebContentsDestroyed( 61 virtual void WebContentsDestroyed() OVERRIDE;
62 content::WebContents* web_contents) OVERRIDE;
63 62
64 // Checks whether the install is initiated by a page in a verified site 63 // Checks whether the install is initiated by a page in a verified site
65 // (which is at least a domain, but can also have a port or a path). 64 // (which is at least a domain, but can also have a port or a path).
66 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, 65 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url,
67 const std::string& verified_site); 66 const std::string& verified_site);
68 67
69 GURL requestor_url_; 68 GURL requestor_url_;
70 69
71 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
72 }; 71 };
73 72
74 } // namespace extensions 73 } // namespace extensions
75 74
76 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/script_executor.cc ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698