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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 base::Lock lock_; 137 base::Lock lock_;
138 }; 138 };
139 139
140 class ConvertableToTraceFormatWrapper 140 class ConvertableToTraceFormatWrapper
141 : public base::debug::ConvertableToTraceFormat { 141 : public base::debug::ConvertableToTraceFormat {
142 public: 142 public:
143 explicit ConvertableToTraceFormatWrapper( 143 explicit ConvertableToTraceFormatWrapper(
144 const blink::WebConvertableToTraceFormat& convertable) 144 const blink::WebConvertableToTraceFormat& convertable)
145 : convertable_(convertable) {} 145 : convertable_(convertable) {}
146 virtual void AppendAsTraceFormat(std::string* out) const override { 146 void AppendAsTraceFormat(std::string* out) const override {
147 *out += convertable_.asTraceFormat().utf8(); 147 *out += convertable_.asTraceFormat().utf8();
148 } 148 }
149 149
150 private: 150 private:
151 virtual ~ConvertableToTraceFormatWrapper() {} 151 ~ConvertableToTraceFormatWrapper() override {}
152 152
153 blink::WebConvertableToTraceFormat convertable_; 153 blink::WebConvertableToTraceFormat convertable_;
154 }; 154 };
155 155
156 bool isHostnameReservedIPAddress(const std::string& host) { 156 bool isHostnameReservedIPAddress(const std::string& host) {
157 net::IPAddressNumber address; 157 net::IPAddressNumber address;
158 if (!net::ParseURLHostnameToNumber(host, &address)) 158 if (!net::ParseURLHostnameToNumber(host, &address))
159 return false; 159 return false;
160 return net::IsIPAddressReserved(address); 160 return net::IsIPAddressReserved(address);
161 } 161 }
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 } 1204 }
1205 1205
1206 // static 1206 // static
1207 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1207 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1208 WebThreadImplForMessageLoop* impl = 1208 WebThreadImplForMessageLoop* impl =
1209 static_cast<WebThreadImplForMessageLoop*>(thread); 1209 static_cast<WebThreadImplForMessageLoop*>(thread);
1210 delete impl; 1210 delete impl;
1211 } 1211 }
1212 1212
1213 } // namespace content 1213 } // namespace content
OLDNEW
« no previous file with comments | « content/child/appcache/appcache_frontend_impl.h ('k') | content/child/blink_platform_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698