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

Unified Diff: chrome/common/webkit_param_traits.cc

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/webkit_param_traits.cc
===================================================================
--- chrome/common/webkit_param_traits.cc (revision 79188)
+++ chrome/common/webkit_param_traits.cc (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2010 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/webkit_param_traits.h"
-
-#include "base/format_macros.h"
-
-namespace IPC {
-
-void ParamTraits<WebKit::WebCache::ResourceTypeStat>::Log(
- const param_type& p, std::string* l) {
- l->append(base::StringPrintf("%" PRIuS " %" PRIuS " %" PRIuS " %" PRIuS,
- p.count, p.size, p.liveSize, p.decodedSize));
-}
-
-void ParamTraits<WebKit::WebTextCheckingResult>::Write(Message* m,
- const param_type& p) {
- WriteParam(m, static_cast<int>(p.error));
- WriteParam(m, p.position);
- WriteParam(m, p.length);
-}
-
-bool ParamTraits<WebKit::WebTextCheckingResult>::Read(const Message* m,
- void** iter,
- param_type* p) {
- int error = 0;
- if (!ReadParam(m, iter, &error))
- return false;
- if (error != WebKit::WebTextCheckingResult::ErrorSpelling &&
- error != WebKit::WebTextCheckingResult::ErrorGrammar)
- return false;
- int position = 0;
- if (!ReadParam(m, iter, &position))
- return false;
- int length = 0;
- if (!ReadParam(m, iter, &length))
- return false;
-
- *p = WebKit::WebTextCheckingResult(
- static_cast<WebKit::WebTextCheckingResult::Error>(error),
- position,
- length);
- return true;
-}
-
-void ParamTraits<WebKit::WebTextCheckingResult>::Log(const param_type& p,
- std::string* l) {
- l->append("(");
- LogParam(static_cast<int>(p.error), l);
- l->append(", ");
- LogParam(p.position, l);
- l->append(", ");
- LogParam(p.length, l);
- l->append(")");
-}
-
-} // namespace IPC
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698