| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ | 5 #ifndef WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ |
| 6 #define WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ | 6 #define WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 | 16 |
| 17 namespace win8 { | 17 namespace win8 { |
| 18 | 18 |
| 19 // Asynchronously drives Windows 8's OpenWithDialog into making a given program | 19 // Asynchronously drives Windows 8's OpenWithDialog into making a given program |
| 20 // the default handler for an URL protocol. | 20 // the default handler for an URL protocol. |
| 21 class OpenWithDialogController { | 21 class OpenWithDialogController { |
| 22 public: | 22 public: |
| 23 // A callback that is invoked upon completion of the OpenWithDialog | 23 // A callback that is invoked upon completion of the OpenWithDialog |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class Context; | 55 class Context; |
| 56 | 56 |
| 57 base::WeakPtr<Context> context_; | 57 base::WeakPtr<Context> context_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(OpenWithDialogController); | 59 DISALLOW_COPY_AND_ASSIGN(OpenWithDialogController); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace win8 | 62 } // namespace win8 |
| 63 | 63 |
| 64 #endif // WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ | 64 #endif // WIN8_TEST_OPEN_WITH_DIALOG_CONTROLLER_H_ |
| OLD | NEW |