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

Side by Side Diff: chrome/browser/web_applications/web_app_mac.h

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 8 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 | Annotate | Revision Log
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_WEB_APPLICATIONS_WEB_APP_MAC_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h"
9 #include "chrome/browser/shell_integration.h" 10 #include "chrome/browser/shell_integration.h"
10 11
11 namespace web_app { 12 namespace web_app {
12 13
13 class WebAppShortcutCreator { 14 class WebAppShortcutCreator {
14 public: 15 public:
15 explicit WebAppShortcutCreator( 16 explicit WebAppShortcutCreator(
17 const FilePath& web_app_path,
16 const ShellIntegration::ShortcutInfo& shortcut_info); 18 const ShellIntegration::ShortcutInfo& shortcut_info);
17 virtual ~WebAppShortcutCreator(); 19 virtual ~WebAppShortcutCreator();
18 20
19 bool CreateShortcut(); 21 bool CreateShortcut();
20 22
21 protected: 23 protected:
22 FilePath GetAppLoaderPath() const; 24 FilePath GetAppLoaderPath() const;
23 virtual FilePath GetDstPath(const FilePath& app_file_name) const; 25 virtual FilePath GetDstPath(const FilePath& app_file_name) const;
24 bool UpdatePlist(const FilePath& app_path) const; 26 bool UpdatePlist(const FilePath& app_path) const;
25 bool UpdateIcon(const FilePath& app_path) const; 27 bool UpdateIcon(const FilePath& app_path) const;
26 28
27 private: 29 private:
30 FilePath web_app_path_;
jeremy 2012/02/09 09:27:00 Please comment this member.
sail 2012/02/10 00:13:18 Done.
28 ShellIntegration::ShortcutInfo info_; 31 ShellIntegration::ShortcutInfo info_;
29 }; 32 };
30 33
31 } // namespace web_app 34 } // namespace web_app
32 35
33 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ 36 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698