| OLD | NEW |
| 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_SHELL_INTEGRATION_H_ | 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ | 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 #include "ui/gfx/image/image.h" | 15 #include "ui/gfx/image/image_family.h" |
| 16 | 16 |
| 17 class CommandLine; | 17 class CommandLine; |
| 18 | 18 |
| 19 class ShellIntegration { | 19 class ShellIntegration { |
| 20 public: | 20 public: |
| 21 // Sets Chrome as the default browser (only for the current user). Returns | 21 // Sets Chrome as the default browser (only for the current user). Returns |
| 22 // false if this operation fails. | 22 // false if this operation fails. |
| 23 static bool SetAsDefaultBrowser(); | 23 static bool SetAsDefaultBrowser(); |
| 24 | 24 |
| 25 // Initiates an OS shell flow which (if followed by the user) should set | 25 // Initiates an OS shell flow which (if followed by the user) should set |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 GURL url; | 95 GURL url; |
| 96 // If |extension_id| is non-empty, this is short cut is to an extension-app | 96 // If |extension_id| is non-empty, this is short cut is to an extension-app |
| 97 // and the launch url will be detected at start-up. In this case, |url| | 97 // and the launch url will be detected at start-up. In this case, |url| |
| 98 // is still used to generate the app id (windows app id, not chrome app id). | 98 // is still used to generate the app id (windows app id, not chrome app id). |
| 99 std::string extension_id; | 99 std::string extension_id; |
| 100 bool is_platform_app; | 100 bool is_platform_app; |
| 101 string16 title; | 101 string16 title; |
| 102 string16 description; | 102 string16 description; |
| 103 base::FilePath extension_path; | 103 base::FilePath extension_path; |
| 104 gfx::Image favicon; | 104 gfx::ImageFamily favicon; |
| 105 base::FilePath profile_path; | 105 base::FilePath profile_path; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 // Info about which locations to create app shortcuts in. | 108 // Info about which locations to create app shortcuts in. |
| 109 struct ShortcutLocations { | 109 struct ShortcutLocations { |
| 110 ShortcutLocations(); | 110 ShortcutLocations(); |
| 111 | 111 |
| 112 bool on_desktop; | 112 bool on_desktop; |
| 113 bool in_applications_menu; | 113 bool in_applications_menu; |
| 114 | 114 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // Set Chrome as the default handler for this protocol. | 329 // Set Chrome as the default handler for this protocol. |
| 330 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 330 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
| 331 | 331 |
| 332 std::string protocol_; | 332 std::string protocol_; |
| 333 | 333 |
| 334 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 334 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 335 }; | 335 }; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 338 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |