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

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

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. Created 10 years, 4 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/property_bag.cc ('k') | chrome/common/serialized_script_value.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SERIALIZED_SCRIPT_VALUE_H_ 5 #ifndef CHROME_COMMON_SERIALIZED_SCRIPT_VALUE_H_
6 #define CHROME_COMMON_SERIALIZED_SCRIPT_VALUE_H_ 6 #define CHROME_COMMON_SERIALIZED_SCRIPT_VALUE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" 10
11 namespace WebKit {
12 class WebSerializedScriptValue;
13 }
11 14
12 class SerializedScriptValue { 15 class SerializedScriptValue {
13 public: 16 public:
14 SerializedScriptValue(); 17 SerializedScriptValue();
15 SerializedScriptValue(bool is_null, bool is_invalid, const string16& data); 18 SerializedScriptValue(bool is_null, bool is_invalid, const string16& data);
16 explicit SerializedScriptValue(const WebKit::WebSerializedScriptValue& value); 19 explicit SerializedScriptValue(const WebKit::WebSerializedScriptValue& value);
17 20
18 void set_is_null(bool is_null) { is_null_ = is_null; } 21 void set_is_null(bool is_null) { is_null_ = is_null; }
19 bool is_null() const { return is_null_; } 22 bool is_null() const { return is_null_; }
20 23
21 void set_is_invalid(bool is_invalid) { is_invalid_ = is_invalid; } 24 void set_is_invalid(bool is_invalid) { is_invalid_ = is_invalid; }
22 bool is_invalid() const { return is_invalid_; } 25 bool is_invalid() const { return is_invalid_; }
23 26
24 void set_data(const string16& data) { data_ = data; } 27 void set_data(const string16& data) { data_ = data; }
25 const string16& data() const { return data_; } 28 const string16& data() const { return data_; }
26 29
27 void set_web_serialized_script_value( 30 void set_web_serialized_script_value(
28 const WebKit::WebSerializedScriptValue& value); 31 const WebKit::WebSerializedScriptValue& value);
29 32
30 operator WebKit::WebSerializedScriptValue() const; 33 operator WebKit::WebSerializedScriptValue() const;
31 34
32 private: 35 private:
33 bool is_null_; // Is this null? If so, none of the other properties are valid. 36 bool is_null_; // Is this null? If so, none of the other properties are valid.
34 bool is_invalid_; // Is data_ valid? 37 bool is_invalid_; // Is data_ valid?
35 string16 data_; // The wire string format of the serialized script value. 38 string16 data_; // The wire string format of the serialized script value.
36 }; 39 };
37 40
38 #endif // CHROME_COMMON_SERIALIZED_SCRIPT_VALUE_H_ 41 #endif // CHROME_COMMON_SERIALIZED_SCRIPT_VALUE_H_
OLDNEW
« no previous file with comments | « chrome/common/property_bag.cc ('k') | chrome/common/serialized_script_value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698