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

Unified Diff: chrome/common/content_settings_pattern_serializer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/content_settings_pattern_serializer.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/content_settings_pattern_serializer.cc
diff --git a/chrome/common/content_settings_pattern_serializer.cc b/chrome/common/content_settings_pattern_serializer.cc
deleted file mode 100644
index 1f8045aac98fa600947cc04d34eeefc63af6d2cb..0000000000000000000000000000000000000000
--- a/chrome/common/content_settings_pattern_serializer.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/content_settings_pattern_serializer.h"
-
-#include "chrome/common/render_messages.h"
-#include "components/content_settings/core/common/content_settings_pattern.h"
-
-// static
-void ContentSettingsPatternSerializer::GetSize(
- const ContentSettingsPattern& pattern, base::PickleSizer* s) {
- IPC::GetParamSize(s, pattern.is_valid_);
- IPC::GetParamSize(s, pattern.parts_);
-}
-
-// static
-void ContentSettingsPatternSerializer::WriteToMessage(
- const ContentSettingsPattern& pattern,
- base::Pickle* m) {
- IPC::WriteParam(m, pattern.is_valid_);
- IPC::WriteParam(m, pattern.parts_);
-}
-
-// static
-bool ContentSettingsPatternSerializer::ReadFromMessage(
- const base::Pickle* m,
- base::PickleIterator* iter,
- ContentSettingsPattern* pattern) {
- DCHECK(pattern);
- return IPC::ReadParam(m, iter, &pattern->is_valid_) &&
- IPC::ReadParam(m, iter, &pattern->parts_);
-}
« no previous file with comments | « chrome/common/content_settings_pattern_serializer.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698