| 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <Windows.h> | 8 #include <Windows.h> |
| 9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/tuple.h" | 16 #include "base/tuple.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/common/safe_browsing/zip_analyzer.h" | 18 #include "chrome/common/safe_browsing/zip_analyzer.h" |
| 19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 20 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
| 21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| 22 #include "ui/gfx/ipc/gfx_param_traits.h" | 22 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 23 | 23 |
| 24 #define IPC_MESSAGE_START ChromeUtilityMsgStart | 24 #define IPC_MESSAGE_START ChromeUtilityMsgStart |
| 25 | 25 |
| 26 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ | 26 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ |
| 27 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ | 27 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ |
| 28 | 28 |
| 29 typedef std::vector<Tuple<SkBitmap, base::FilePath>> DecodedImages; | 29 typedef std::vector<Tuple2<SkBitmap, base::FilePath> > DecodedImages; |
| 30 | 30 |
| 31 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ | 31 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ |
| 32 | 32 |
| 33 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::zip_analyzer::Results) | 33 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::zip_analyzer::Results) |
| 34 IPC_STRUCT_TRAITS_MEMBER(success) | 34 IPC_STRUCT_TRAITS_MEMBER(success) |
| 35 IPC_STRUCT_TRAITS_MEMBER(has_executable) | 35 IPC_STRUCT_TRAITS_MEMBER(has_executable) |
| 36 IPC_STRUCT_TRAITS_MEMBER(has_archive) | 36 IPC_STRUCT_TRAITS_MEMBER(has_archive) |
| 37 IPC_STRUCT_TRAITS_END() | 37 IPC_STRUCT_TRAITS_END() |
| 38 | 38 |
| 39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
| 40 | 40 |
| 41 // A vector of filters, each being a Tuple containing a display string (i.e. | 41 // A vector of filters, each being a Tuple2 containing a display string (i.e. |
| 42 // "Text Files") and a filter pattern (i.e. "*.txt"). | 42 // "Text Files") and a filter pattern (i.e. "*.txt"). |
| 43 typedef std::vector<Tuple<base::string16, base::string16>> | 43 typedef std::vector<Tuple2<base::string16, base::string16> > |
| 44 GetOpenFileNameFilter; | 44 GetOpenFileNameFilter; |
| 45 | 45 |
| 46 IPC_STRUCT_BEGIN(ChromeUtilityMsg_GetSaveFileName_Params) | 46 IPC_STRUCT_BEGIN(ChromeUtilityMsg_GetSaveFileName_Params) |
| 47 IPC_STRUCT_MEMBER(HWND, owner) | 47 IPC_STRUCT_MEMBER(HWND, owner) |
| 48 IPC_STRUCT_MEMBER(DWORD, flags) | 48 IPC_STRUCT_MEMBER(DWORD, flags) |
| 49 IPC_STRUCT_MEMBER(GetOpenFileNameFilter, filters) | 49 IPC_STRUCT_MEMBER(GetOpenFileNameFilter, filters) |
| 50 IPC_STRUCT_MEMBER(int, one_based_filter_index) | 50 IPC_STRUCT_MEMBER(int, one_based_filter_index) |
| 51 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename) | 51 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename) |
| 52 IPC_STRUCT_MEMBER(base::FilePath, initial_directory) | 52 IPC_STRUCT_MEMBER(base::FilePath, initial_directory) |
| 53 IPC_STRUCT_MEMBER(base::string16, default_extension) | 53 IPC_STRUCT_MEMBER(base::string16, default_extension) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | 180 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, |
| 181 base::FilePath /* directory */, | 181 base::FilePath /* directory */, |
| 182 std::vector<base::FilePath> /* filenames */) | 182 std::vector<base::FilePath> /* filenames */) |
| 183 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) | 183 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) |
| 184 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, | 184 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, |
| 185 base::FilePath /* path */, | 185 base::FilePath /* path */, |
| 186 int /* one_based_filter_index */) | 186 int /* one_based_filter_index */) |
| 187 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, | 187 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, |
| 188 base::FilePath /* cache file path */) | 188 base::FilePath /* cache file path */) |
| 189 #endif // defined(OS_WIN) | 189 #endif // defined(OS_WIN) |
| OLD | NEW |