| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/child/blink_platform_impl.h" | 5 #include "content/child/blink_platform_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 base::Lock lock_; | 140 base::Lock lock_; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 class ConvertableToTraceFormatWrapper | 143 class ConvertableToTraceFormatWrapper |
| 144 : public base::debug::ConvertableToTraceFormat { | 144 : public base::debug::ConvertableToTraceFormat { |
| 145 public: | 145 public: |
| 146 explicit ConvertableToTraceFormatWrapper( | 146 explicit ConvertableToTraceFormatWrapper( |
| 147 const blink::WebConvertableToTraceFormat& convertable) | 147 const blink::WebConvertableToTraceFormat& convertable) |
| 148 : convertable_(convertable) {} | 148 : convertable_(convertable) {} |
| 149 virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE { | 149 virtual void AppendAsTraceFormat(std::string* out) const override { |
| 150 *out += convertable_.asTraceFormat().utf8(); | 150 *out += convertable_.asTraceFormat().utf8(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 private: | 153 private: |
| 154 virtual ~ConvertableToTraceFormatWrapper() {} | 154 virtual ~ConvertableToTraceFormatWrapper() {} |
| 155 | 155 |
| 156 blink::WebConvertableToTraceFormat convertable_; | 156 blink::WebConvertableToTraceFormat convertable_; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 bool isHostnameReservedIPAddress(const std::string& host) { | 159 bool isHostnameReservedIPAddress(const std::string& host) { |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 // static | 1210 // static |
| 1211 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 1211 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
| 1212 WebThreadImplForMessageLoop* impl = | 1212 WebThreadImplForMessageLoop* impl = |
| 1213 static_cast<WebThreadImplForMessageLoop*>(thread); | 1213 static_cast<WebThreadImplForMessageLoop*>(thread); |
| 1214 delete impl; | 1214 delete impl; |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 } // namespace content | 1217 } // namespace content |
| OLD | NEW |