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

Side by Side Diff: chrome/browser/chromeos/file_manager/app_installer.h

Issue 313203004: Make ExtensionInstallPrompt::Prompt ref-counted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master for CQ Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_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 24 matching lines...) Expand all
35 virtual ~AppInstaller(); 35 virtual ~AppInstaller();
36 36
37 void OnWebContentsDestroyed(content::WebContents* web_contents); 37 void OnWebContentsDestroyed(content::WebContents* web_contents);
38 38
39 // WebstoreStandaloneInstaller implementation. 39 // WebstoreStandaloneInstaller implementation.
40 virtual bool CheckRequestorAlive() const OVERRIDE; 40 virtual bool CheckRequestorAlive() const OVERRIDE;
41 virtual const GURL& GetRequestorURL() const OVERRIDE; 41 virtual const GURL& GetRequestorURL() const OVERRIDE;
42 virtual bool ShouldShowPostInstallUI() const OVERRIDE; 42 virtual bool ShouldShowPostInstallUI() const OVERRIDE;
43 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; 43 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE;
44 virtual content::WebContents* GetWebContents() const OVERRIDE; 44 virtual content::WebContents* GetWebContents() const OVERRIDE;
45 virtual scoped_ptr<ExtensionInstallPrompt::Prompt> 45 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
46 CreateInstallPrompt() const OVERRIDE; 46 const OVERRIDE;
47 virtual bool CheckInlineInstallPermitted( 47 virtual bool CheckInlineInstallPermitted(
48 const base::DictionaryValue& webstore_data, 48 const base::DictionaryValue& webstore_data,
49 std::string* error) const OVERRIDE; 49 std::string* error) const OVERRIDE;
50 virtual bool CheckRequestorPermitted( 50 virtual bool CheckRequestorPermitted(
51 const base::DictionaryValue& webstore_data, 51 const base::DictionaryValue& webstore_data,
52 std::string* error) const OVERRIDE; 52 std::string* error) const OVERRIDE;
53 53
54 private: 54 private:
55 class WebContentsObserver; 55 class WebContentsObserver;
56 56
57 Callback callback_; 57 Callback callback_;
58 content::WebContents* web_contents_; 58 content::WebContents* web_contents_;
59 scoped_ptr<WebContentsObserver> web_contents_observer_; 59 scoped_ptr<WebContentsObserver> web_contents_observer_;
60 60
61 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); 61 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller);
62 }; 62 };
63 63
64 } // namespace file_manager 64 } // namespace file_manager
65 65
66 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_launcher.cc ('k') | chrome/browser/chromeos/file_manager/app_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698