| 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 // This file declares methods that are useful for integrating Chrome in | 5 // This file declares methods that are useful for integrating Chrome in |
| 6 // Windows shell. These methods are all static and currently part of | 6 // Windows shell. These methods are all static and currently part of |
| 7 // ShellUtil class. | 7 // ShellUtil class. |
| 8 | 8 |
| 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
| 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
| 11 | 11 |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/string16.h" | 20 #include "base/strings/string16.h" |
| 21 #include "chrome/installer/util/work_item_list.h" | 21 #include "chrome/installer/util/work_item_list.h" |
| 22 | 22 |
| 23 class BrowserDistribution; | 23 class BrowserDistribution; |
| 24 | 24 |
| 25 // This is a utility class that provides common shell integration methods | 25 // This is a utility class that provides common shell integration methods |
| 26 // that can be used by installer as well as Chrome. | 26 // that can be used by installer as well as Chrome. |
| 27 class ShellUtil { | 27 class ShellUtil { |
| 28 public: | 28 public: |
| 29 // Input to any methods that make changes to OS shell. | 29 // Input to any methods that make changes to OS shell. |
| 30 enum ShellChange { | 30 enum ShellChange { |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 // required by the base32 standard for inputs that aren't a multiple of 5 | 565 // required by the base32 standard for inputs that aren't a multiple of 5 |
| 566 // bytes. | 566 // bytes. |
| 567 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); | 567 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); |
| 568 | 568 |
| 569 private: | 569 private: |
| 570 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 570 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
| 571 }; | 571 }; |
| 572 | 572 |
| 573 | 573 |
| 574 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 574 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
| OLD | NEW |