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

Side by Side Diff: public/platform/WebData.h

Issue 438843004: Move the user agent styles sheets to blink_resources.grd (Part 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed header inclusion. Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 assign(d); 67 assign(d);
68 return *this; 68 return *this;
69 } 69 }
70 70
71 void reset(); 71 void reset();
72 void assign(const WebData&); 72 void assign(const WebData&);
73 void assign(const char* data, size_t size); 73 void assign(const char* data, size_t size);
74 74
75 size_t size() const; 75 size_t size() const;
76 const char* data() const; 76 const char* data() const;
77 #if INSIDE_BLINK
78 String toASCIIString() const;
eseidel 2014/09/04 07:05:34 I think we normally use CString for ascii-only str
vivekg 2014/09/04 07:44:28 This function was required earlier. Now that we ha
79 #endif
77 80
78 bool isEmpty() const { return !size(); } 81 bool isEmpty() const { return !size(); }
79 bool isNull() const { return m_private.isNull(); } 82 bool isNull() const { return m_private.isNull(); }
80 83
81 #if INSIDE_BLINK 84 #if INSIDE_BLINK
82 WebData(const PassRefPtr<SharedBuffer>&); 85 WebData(const PassRefPtr<SharedBuffer>&);
83 WebData& operator=(const PassRefPtr<SharedBuffer>&); 86 WebData& operator=(const PassRefPtr<SharedBuffer>&);
84 operator PassRefPtr<SharedBuffer>() const; 87 operator PassRefPtr<SharedBuffer>() const;
85 #else 88 #else
86 template <class C> 89 template <class C>
(...skipping 10 matching lines...) Expand all
97 } 100 }
98 #endif 101 #endif
99 102
100 private: 103 private:
101 WebPrivatePtr<SharedBuffer> m_private; 104 WebPrivatePtr<SharedBuffer> m_private;
102 }; 105 };
103 106
104 } // namespace blink 107 } // namespace blink
105 108
106 #endif 109 #endif
OLDNEW
« Source/platform/PlatformResourceLoader.cpp ('K') | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698