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

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

Issue 6624066: Put file_system messages in their own file and move them to content, in prepa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « chrome/common/pepper_file_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 // TODO(erg): This list has been temporarily annotated by erg while doing work 12 // TODO(erg): This list has been temporarily annotated by erg while doing work
13 // on which headers to pull out. 13 // on which headers to pull out.
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/ref_counted.h" 15 #include "base/ref_counted.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "chrome/common/common_param_traits.h" 17 #include "chrome/common/common_param_traits.h"
18 #include "chrome/common/css_colors.h" 18 #include "chrome/common/css_colors.h"
19 #include "chrome/common/page_transition_types.h" 19 #include "chrome/common/page_transition_types.h"
20 #include "chrome/common/translate_errors.h" 20 #include "chrome/common/translate_errors.h"
21 #include "chrome/common/view_types.h" 21 #include "chrome/common/view_types.h"
22 #include "chrome/common/webkit_param_traits.h" 22 #include "chrome/common/webkit_param_traits.h"
23 #include "content/common/common_param_traits.h" 23 #include "content/common/common_param_traits.h"
24 #include "ipc/ipc_message_utils.h" 24 #include "ipc/ipc_message_utils.h"
25 #include "ipc/ipc_platform_file.h" // ifdefed typedef. 25 #include "ipc/ipc_platform_file.h" // ifdefed typedef.
26 #include "ui/base/clipboard/clipboard.h" // enum 26 #include "ui/base/clipboard/clipboard.h" // enum
27 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status 27 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status
28 #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType
29 28
30 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
31 struct FontDescriptor; 30 struct FontDescriptor;
32 #endif 31 #endif
33 32
34 namespace appcache { 33 namespace appcache {
35 struct AppCacheInfo; 34 struct AppCacheInfo;
36 struct AppCacheResourceInfo; 35 struct AppCacheResourceInfo;
37 } 36 }
38 37
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 }; 448 };
450 449
451 template <> 450 template <>
452 struct ParamTraits<scoped_refptr<webkit_blob::BlobData> > { 451 struct ParamTraits<scoped_refptr<webkit_blob::BlobData> > {
453 typedef scoped_refptr<webkit_blob::BlobData> param_type; 452 typedef scoped_refptr<webkit_blob::BlobData> param_type;
454 static void Write(Message* m, const param_type& p); 453 static void Write(Message* m, const param_type& p);
455 static bool Read(const Message* m, void** iter, param_type* r); 454 static bool Read(const Message* m, void** iter, param_type* r);
456 static void Log(const param_type& p, std::string* l); 455 static void Log(const param_type& p, std::string* l);
457 }; 456 };
458 457
459 template <>
460 struct SimilarTypeTraits<fileapi::FileSystemType> {
461 typedef int Type;
462 };
463
464 // Traits for AudioBuffersState structure. 458 // Traits for AudioBuffersState structure.
465 template <> 459 template <>
466 struct ParamTraits<AudioBuffersState> { 460 struct ParamTraits<AudioBuffersState> {
467 typedef AudioBuffersState param_type; 461 typedef AudioBuffersState param_type;
468 static void Write(Message* m, const param_type& p); 462 static void Write(Message* m, const param_type& p);
469 static bool Read(const Message* m, void** iter, param_type* p); 463 static bool Read(const Message* m, void** iter, param_type* p);
470 static void Log(const param_type& p, std::string* l); 464 static void Log(const param_type& p, std::string* l);
471 }; 465 };
472 466
473 } // namespace IPC 467 } // namespace IPC
474 468
475 #include "chrome/common/render_messages_internal.h" 469 #include "chrome/common/render_messages_internal.h"
476 470
477 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 471 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/pepper_file_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698