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

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

Issue 2614033004: Convert SetContentSettingRules to use mojo, part 2/2. (Closed)
Patch Set: Convert SetContentSettingRules to use mojo, part 2/2. Created 3 years, 11 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_thread_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/render_messages.h"
6
7 #include "chrome/common/content_settings_pattern_serializer.h"
8
9 namespace IPC {
10
11 void ParamTraits<ContentSettingsPattern>::GetSize(
12 base::PickleSizer* s,
13 const ContentSettingsPattern& pattern) {
14 ContentSettingsPatternSerializer::GetSize(pattern, s);
15 }
16
17 void ParamTraits<ContentSettingsPattern>::Write(
18 base::Pickle* m,
19 const ContentSettingsPattern& pattern) {
20 ContentSettingsPatternSerializer::WriteToMessage(pattern, m);
21 }
22
23 bool ParamTraits<ContentSettingsPattern>::Read(
24 const base::Pickle* m,
25 base::PickleIterator* iter,
26 ContentSettingsPattern* pattern) {
27 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern);
28 }
29
30 void ParamTraits<ContentSettingsPattern>::Log(
31 const ContentSettingsPattern& p, std::string* l) {
32 l->append("<ContentSettingsPattern: ");
33 l->append(p.ToString());
34 l->append(">");
35 }
36
37 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_thread_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698