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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 2831033002: Use unique_ptr for Platform::CreateURLLoader (Closed)
Patch Set: Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); 227 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data);
228 // Set OrientationData to return when setDeviceOrientationListener 228 // Set OrientationData to return when setDeviceOrientationListener
229 // is invoked. 229 // is invoked.
230 static void SetMockDeviceOrientationDataForTesting( 230 static void SetMockDeviceOrientationDataForTesting(
231 const device::OrientationData& data); 231 const device::OrientationData& data);
232 232
233 WebDatabaseObserverImpl* web_database_observer_impl() { 233 WebDatabaseObserverImpl* web_database_observer_impl() {
234 return web_database_observer_impl_.get(); 234 return web_database_observer_impl_.get();
235 } 235 }
236 236
237 blink::WebURLLoader* CreateURLLoader() override; 237 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override;
238 238
239 void RequestPurgeMemory() override; 239 void RequestPurgeMemory() override;
240 240
241 private: 241 private:
242 bool CheckPreparsedJsCachingEnabled() const; 242 bool CheckPreparsedJsCachingEnabled() const;
243 243
244 // Factory that takes a type and return PlatformEventObserverBase that matches 244 // Factory that takes a type and return PlatformEventObserverBase that matches
245 // it. 245 // it.
246 static std::unique_ptr<PlatformEventObserverBase> 246 static std::unique_ptr<PlatformEventObserverBase>
247 CreatePlatformEventObserverFromType(blink::WebPlatformEventType type); 247 CreatePlatformEventObserverFromType(blink::WebPlatformEventType type);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // Only used when network service is enabled. 308 // Only used when network service is enabled.
309 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_; 309 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_;
310 310
311 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 311 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
312 }; 312 };
313 313
314 } // namespace content 314 } // namespace content
315 315
316 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 316 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698