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

Unified Diff: chrome/common/serialized_script_value.cc

Issue 6672057: Move all the message files in chrome that belong in content. (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
Index: chrome/common/serialized_script_value.cc
===================================================================
--- chrome/common/serialized_script_value.cc (revision 78395)
+++ chrome/common/serialized_script_value.cc (working copy)
@@ -1,42 +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/serialized_script_value.h"
-
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptValue.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
-
-using WebKit::WebSerializedScriptValue;
-
-SerializedScriptValue::SerializedScriptValue()
- : is_null_(true),
- is_invalid_(false) {
-}
-
-SerializedScriptValue::SerializedScriptValue(
- bool is_null, bool is_invalid, const string16& data)
- : is_null_(is_null),
- is_invalid_(is_invalid),
- data_(data) {
-}
-
-SerializedScriptValue::SerializedScriptValue(
- const WebSerializedScriptValue& value) {
- set_web_serialized_script_value(value);
-}
-
-SerializedScriptValue::operator WebSerializedScriptValue() const {
- if (is_null_)
- return WebSerializedScriptValue();
- if (is_invalid_)
- return WebSerializedScriptValue::createInvalid();
- return WebSerializedScriptValue::fromString(data_);
-}
-
-void SerializedScriptValue::set_web_serialized_script_value(
- const WebSerializedScriptValue& value) {
- is_null_ = value.isNull();
- is_invalid_ = value.isNull() ? false : value.toString().isNull();
- data_ = value.isNull() ? string16() : static_cast<string16>(value.toString());
-}

Powered by Google App Engine
This is Rietveld 408576698