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

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

Issue 3245010: Revert 57915 - Add final part of IPC plumbing for FileSystem API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
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"
19 #include "base/ref_counted.h" 18 #include "base/ref_counted.h"
20 #include "chrome/common/content_settings.h" 19 #include "chrome/common/content_settings.h"
21 #include "chrome/common/page_zoom.h" 20 #include "chrome/common/page_zoom.h"
22 #include "gfx/native_widget_types.h" 21 #include "gfx/native_widget_types.h"
23 #include "ipc/ipc_message_utils.h" 22 #include "ipc/ipc_message_utils.h"
24 #include "net/url_request/url_request_status.h" 23 #include "net/url_request/url_request_status.h"
25 #include "printing/native_metafile.h" 24 #include "printing/native_metafile.h"
26 #include "webkit/glue/webcursor.h" 25 #include "webkit/glue/webcursor.h"
27 #include "webkit/glue/window_open_disposition.h" 26 #include "webkit/glue/window_open_disposition.h"
28 27
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 }; 318 };
320 319
321 template <> 320 template <>
322 struct ParamTraits<printing::NativeMetafile> { 321 struct ParamTraits<printing::NativeMetafile> {
323 typedef printing::NativeMetafile param_type; 322 typedef printing::NativeMetafile param_type;
324 static void Write(Message* m, const param_type& p); 323 static void Write(Message* m, const param_type& p);
325 static bool Read(const Message* m, void** iter, param_type* r); 324 static bool Read(const Message* m, void** iter, param_type* r);
326 static void Log(const param_type& p, std::string* l); 325 static void Log(const param_type& p, std::string* l);
327 }; 326 };
328 327
329 template <>
330 struct ParamTraits<file_util::FileInfo> {
331 typedef file_util::FileInfo param_type;
332 static void Write(Message* m, const param_type& p);
333 static bool Read(const Message* m, void** iter, param_type* r);
334 static void Log(const param_type& p, std::string* l);
335 };
336
337 } // namespace IPC 328 } // namespace IPC
338 329
339 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ 330 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.cc ('k') | chrome/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698