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

Side by Side Diff: content/public/common/common_param_traits.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 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 // 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 used by the content code, and which need 9 // specializations for types that are used by the content code, and which need
10 // manual serialization code. This is usually because they're not structs with 10 // manual serialization code. This is usually because they're not structs with
11 // public members, or because the same type is being used in multiple 11 // public members, or because the same type is being used in multiple
12 // *_messages.h headers. 12 // *_messages.h headers.
13 13
14 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_ 14 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_
15 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_ 15 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_
16 #pragma once
17 16
18 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
19 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
20 #include "content/public/common/common_param_traits_macros.h" 19 #include "content/public/common/common_param_traits_macros.h"
21 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
22 #include "ipc/ipc_message_utils.h" 21 #include "ipc/ipc_message_utils.h"
23 #include "net/base/ip_endpoint.h" 22 #include "net/base/ip_endpoint.h"
24 #include "net/url_request/url_request_status.h" 23 #include "net/url_request/url_request_status.h"
25 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
26 #include "ui/surface/transport_dib.h" 25 #include "ui/surface/transport_dib.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Note: This function expects parameter |r| to be of type &SkBitmap since 216 // Note: This function expects parameter |r| to be of type &SkBitmap since
218 // r->SetConfig() and r->SetPixels() are called. 217 // r->SetConfig() and r->SetPixels() are called.
219 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 218 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
220 219
221 static void Log(const param_type& p, std::string* l); 220 static void Log(const param_type& p, std::string* l);
222 }; 221 };
223 222
224 } // namespace IPC 223 } // namespace IPC
225 224
226 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_ 225 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_sandbox_support_linux.h ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698