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

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

Issue 1787973002: Replace blink::WebDiscardableMemory with base::DiscardableMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use StringPiece::as_string Created 4 years, 9 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
« no previous file with comments | « base/test/test_discardable_memory_allocator.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_CHILD_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool databaseSetFileSize(const blink::WebString& vfs_file_name, 76 bool databaseSetFileSize(const blink::WebString& vfs_file_name,
77 long long size) override; 77 long long size) override;
78 blink::WebString signedPublicKeyAndChallengeString( 78 blink::WebString signedPublicKeyAndChallengeString(
79 unsigned key_size_index, 79 unsigned key_size_index,
80 const blink::WebString& challenge, 80 const blink::WebString& challenge,
81 const blink::WebURL& url, 81 const blink::WebURL& url,
82 const blink::WebURL& top_origin) override; 82 const blink::WebURL& top_origin) override;
83 size_t actualMemoryUsageMB() override; 83 size_t actualMemoryUsageMB() override;
84 size_t numberOfProcessors() override; 84 size_t numberOfProcessors() override;
85 85
86 blink::WebDiscardableMemory* allocateAndLockDiscardableMemory(
87 size_t bytes) override;
88 size_t maxDecodedImageBytes() override; 86 size_t maxDecodedImageBytes() override;
89 uint32_t getUniqueIdForProcess() override; 87 uint32_t getUniqueIdForProcess() override;
90 blink::WebURLLoader* createURLLoader() override; 88 blink::WebURLLoader* createURLLoader() override;
91 blink::WebSocketHandle* createWebSocketHandle() override; 89 blink::WebSocketHandle* createWebSocketHandle() override;
92 blink::WebString userAgent() override; 90 blink::WebString userAgent() override;
93 blink::WebData parseDataURL(const blink::WebURL& url, 91 blink::WebData parseDataURL(const blink::WebURL& url,
94 blink::WebString& mimetype, 92 blink::WebString& mimetype,
95 blink::WebString& charset) override; 93 blink::WebString& charset) override;
96 blink::WebURLError cancelledError(const blink::WebURL& url) const override; 94 blink::WebURLError cancelledError(const blink::WebURL& url) const override;
97 bool isReservedIPAddress(const blink::WebString& host) const override; 95 bool isReservedIPAddress(const blink::WebString& host) const override;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_refptr<PushDispatcher> push_dispatcher_; 170 scoped_refptr<PushDispatcher> push_dispatcher_;
173 scoped_ptr<PermissionDispatcher> permission_client_; 171 scoped_ptr<PermissionDispatcher> permission_client_;
174 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; 172 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_;
175 173
176 scheduler::WebThreadBase* compositor_thread_; 174 scheduler::WebThreadBase* compositor_thread_;
177 }; 175 };
178 176
179 } // namespace content 177 } // namespace content
180 178
181 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 179 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « base/test/test_discardable_memory_allocator.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698