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

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

Issue 1680873002: [Experimental Framework] Move trial token code to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add boringssl dependency to content/renderer/ Created 4 years, 10 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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/id_map.h" 12 #include "base/id_map.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "cc/blink/web_compositor_support_impl.h" 16 #include "cc/blink/web_compositor_support_impl.h"
17 #include "content/child/blink_platform_impl.h" 17 #include "content/child/blink_platform_impl.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/renderer/origin_trials/trial_token_validator.h"
19 #include "content/renderer/webpublicsuffixlist_impl.h" 20 #include "content/renderer/webpublicsuffixlist_impl.h"
20 #include "device/vibration/vibration_manager.mojom.h" 21 #include "device/vibration/vibration_manager.mojom.h"
21 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 22 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
22 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" 23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h"
23 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 24 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
24 25
25 namespace cc { 26 namespace cc {
26 class ContextProvider; 27 class ContextProvider;
27 } 28 }
28 29
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, 184 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition,
184 blink::WebStorageQuotaType, 185 blink::WebStorageQuotaType,
185 blink::WebStorageQuotaCallbacks) override; 186 blink::WebStorageQuotaCallbacks) override;
186 void vibrate(unsigned int milliseconds) override; 187 void vibrate(unsigned int milliseconds) override;
187 void cancelVibration() override; 188 void cancelVibration() override;
188 blink::WebThread* currentThread() override; 189 blink::WebThread* currentThread() override;
189 void recordRappor(const char* metric, 190 void recordRappor(const char* metric,
190 const blink::WebString& sample) override; 191 const blink::WebString& sample) override;
191 void recordRapporURL(const char* metric, const blink::WebURL& url) override; 192 void recordRapporURL(const char* metric, const blink::WebURL& url) override;
192 193
194 blink::WebTrialTokenValidator* trialTokenValidator() override;
195
193 // Set the PlatformEventObserverBase in |platform_event_observers_| associated 196 // Set the PlatformEventObserverBase in |platform_event_observers_| associated
194 // with |type| to |observer|. If there was already an observer associated to 197 // with |type| to |observer|. If there was already an observer associated to
195 // the given |type|, it will be replaced. 198 // the given |type|, it will be replaced.
196 // Note that |observer| will be owned by this object after the call. 199 // Note that |observer| will be owned by this object after the call.
197 void SetPlatformEventObserverForTesting( 200 void SetPlatformEventObserverForTesting(
198 blink::WebPlatformEventType type, 201 blink::WebPlatformEventType type,
199 scoped_ptr<PlatformEventObserverBase> observer); 202 scoped_ptr<PlatformEventObserverBase> observer);
200 203
201 // Disables the WebSandboxSupport implementation for testing. 204 // Disables the WebSandboxSupport implementation for testing.
202 // Tests that do not set up a full sandbox environment should call 205 // Tests that do not set up a full sandbox environment should call
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 292
290 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; 293 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
291 294
292 // Handle to the Vibration mojo service. 295 // Handle to the Vibration mojo service.
293 device::VibrationManagerPtr vibration_manager_; 296 device::VibrationManagerPtr vibration_manager_;
294 297
295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 298 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
296 299
297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 300 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
298 301
302 TrialTokenValidator trial_token_validator_;
303
299 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
300 }; 305 };
301 306
302 } // namespace content 307 } // namespace content
303 308
304 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/origin_trials/trial_token_validator.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698