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/strings/string16.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "ui/gfx/image/image_family.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(); |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // Set Chrome as the default handler for this protocol. | 331 // Set Chrome as the default handler for this protocol. |
332 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 332 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
333 | 333 |
334 std::string protocol_; | 334 std::string protocol_; |
335 | 335 |
336 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 336 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
337 }; | 337 }; |
338 }; | 338 }; |
339 | 339 |
340 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 340 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
OLD | NEW |