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

Side by Side Diff: third_party/WebKit/public/platform/WebCString.h

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 26 matching lines...) Expand all
37 #if INSIDE_BLINK 37 #if INSIDE_BLINK
38 #include "platform/wtf/Forward.h" 38 #include "platform/wtf/Forward.h"
39 #endif 39 #endif
40 #if !INSIDE_BLINK || defined(UNIT_TEST) 40 #if !INSIDE_BLINK || defined(UNIT_TEST)
41 #include <string> 41 #include <string>
42 #endif 42 #endif
43 43
44 namespace WTF { 44 namespace WTF {
45 class CString; 45 class CString;
46 class CStringImpl; 46 class CStringImpl;
47 } 47 } // namespace WTF
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class WebString; 51 class WebString;
52 52
53 // A single-byte string container with unspecified encoding. It is 53 // A single-byte string container with unspecified encoding. It is
54 // inexpensive to copy a WebCString object. 54 // inexpensive to copy a WebCString object.
55 // 55 //
56 // WARNING: It is not safe to pass a WebCString across threads!!! 56 // WARNING: It is not safe to pass a WebCString across threads!!!
57 // 57 //
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 WebPrivatePtr<WTF::CStringImpl> private_; 116 WebPrivatePtr<WTF::CStringImpl> private_;
117 }; 117 };
118 118
119 inline bool operator<(const WebCString& a, const WebCString& b) { 119 inline bool operator<(const WebCString& a, const WebCString& b) {
120 return a.Compare(b) < 0; 120 return a.Compare(b) < 0;
121 } 121 }
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif 125 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698