| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_UTILITY_SHELL_HANDLER_WIN_H_ | 5 #ifndef CHROME_UTILITY_SHELL_HANDLER_WIN_H_ |
| 6 #define CHROME_UTILITY_SHELL_HANDLER_WIN_H_ | 6 #define CHROME_UTILITY_SHELL_HANDLER_WIN_H_ |
| 7 | 7 |
| 8 #include <Windows.h> | 8 #include <Windows.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // in a non-sandboxed utility process. | 27 // in a non-sandboxed utility process. |
| 28 class ShellHandler : public UtilityMessageHandler { | 28 class ShellHandler : public UtilityMessageHandler { |
| 29 public: | 29 public: |
| 30 ShellHandler(); | 30 ShellHandler(); |
| 31 virtual ~ShellHandler(); | 31 virtual ~ShellHandler(); |
| 32 | 32 |
| 33 // IPC::Listener implementation | 33 // IPC::Listener implementation |
| 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 void OnOpenItemViaShell(const base::FilePath& full_path); |
| 37 void OnGetOpenFileName( | 38 void OnGetOpenFileName( |
| 38 HWND owner, | 39 HWND owner, |
| 39 DWORD flags, | 40 DWORD flags, |
| 40 const GetOpenFileNameFilter& filter, | 41 const GetOpenFileNameFilter& filter, |
| 41 const base::FilePath& initial_directory, | 42 const base::FilePath& initial_directory, |
| 42 const base::FilePath& filename); | 43 const base::FilePath& filename); |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(ShellHandler); | 45 DISALLOW_COPY_AND_ASSIGN(ShellHandler); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 #endif // CHROME_UTILITY_SHELL_HANDLER_WIN_H_ | 48 #endif // CHROME_UTILITY_SHELL_HANDLER_WIN_H_ |
| OLD | NEW |