Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1387)

Side by Side Diff: chrome/common/common_param_traits.h

Issue 3208007: Add final part of IPC plumbing for FileSystem API (Closed)
Patch Set: fixing Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 is used to define IPC::ParamTraits<> specializations for a number 5 // This file is used to define IPC::ParamTraits<> specializations for a number
6 // of types so that they can be serialized over IPC. IPC::ParamTraits<> 6 // of types so that they can be serialized over IPC. IPC::ParamTraits<>
7 // specializations for basic types (like int and std::string) and types in the 7 // specializations for basic types (like int and std::string) and types in the
8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains 8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains
9 // specializations for types that are shared by more than one child process. 9 // specializations for types that are shared by more than one child process.
10 10
11 #ifndef CHROME_COMMON_COMMON_PARAM_TRAITS_H_ 11 #ifndef CHROME_COMMON_COMMON_PARAM_TRAITS_H_
12 #define CHROME_COMMON_COMMON_PARAM_TRAITS_H_ 12 #define CHROME_COMMON_COMMON_PARAM_TRAITS_H_
13 #pragma once 13 #pragma once
14 14
15 #include <vector> 15 #include <vector>
16 16
17 #include "app/surface/transport_dib.h" 17 #include "app/surface/transport_dib.h"
18 #include "base/file_util.h"
18 #include "base/ref_counted.h" 19 #include "base/ref_counted.h"
19 #include "chrome/common/content_settings.h" 20 #include "chrome/common/content_settings.h"
20 #include "chrome/common/page_zoom.h" 21 #include "chrome/common/page_zoom.h"
21 #include "gfx/native_widget_types.h" 22 #include "gfx/native_widget_types.h"
22 #include "ipc/ipc_message_utils.h" 23 #include "ipc/ipc_message_utils.h"
23 #include "net/url_request/url_request_status.h" 24 #include "net/url_request/url_request_status.h"
24 #include "printing/native_metafile.h" 25 #include "printing/native_metafile.h"
25 #include "webkit/glue/webcursor.h" 26 #include "webkit/glue/webcursor.h"
26 #include "webkit/glue/window_open_disposition.h" 27 #include "webkit/glue/window_open_disposition.h"
27 28
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 }; 306 };
306 307
307 template <> 308 template <>
308 struct ParamTraits<printing::NativeMetafile> { 309 struct ParamTraits<printing::NativeMetafile> {
309 typedef printing::NativeMetafile param_type; 310 typedef printing::NativeMetafile param_type;
310 static void Write(Message* m, const param_type& p); 311 static void Write(Message* m, const param_type& p);
311 static bool Read(const Message* m, void** iter, param_type* r); 312 static bool Read(const Message* m, void** iter, param_type* r);
312 static void Log(const param_type& p, std::string* l); 313 static void Log(const param_type& p, std::string* l);
313 }; 314 };
314 315
316 template <>
317 struct ParamTraits<file_util::FileInfo> {
318 typedef file_util::FileInfo param_type;
319 static void Write(Message* m, const param_type& p);
320 static bool Read(const Message* m, void** iter, param_type* r);
321 static void Log(const param_type& p, std::string* l);
322 };
323
315 } // namespace IPC 324 } // namespace IPC
316 325
317 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ 326 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698