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

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

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix all review comments, ran "git cl format" Created 5 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 blink::WebPlatformEventListener*); 152 blink::WebPlatformEventListener*);
153 virtual void stopListening(blink::WebPlatformEventType); 153 virtual void stopListening(blink::WebPlatformEventType);
154 virtual void queryStorageUsageAndQuota( 154 virtual void queryStorageUsageAndQuota(
155 const blink::WebURL& storage_partition, 155 const blink::WebURL& storage_partition,
156 blink::WebStorageQuotaType, 156 blink::WebStorageQuotaType,
157 blink::WebStorageQuotaCallbacks); 157 blink::WebStorageQuotaCallbacks);
158 virtual void vibrate(unsigned int milliseconds); 158 virtual void vibrate(unsigned int milliseconds);
159 virtual void cancelVibration(); 159 virtual void cancelVibration();
160 virtual blink::WebScheduler* scheduler(); 160 virtual blink::WebScheduler* scheduler();
161 virtual blink::WebThread* currentThread(); 161 virtual blink::WebThread* currentThread();
162 virtual void recordRappor(const char* metric, const blink::WebString& sample);
Alexei Svitkine (slow) 2015/04/08 14:57:11 Maybe add the same comment about Rappor here that
kojii 2015/04/08 17:31:46 Hm, these two are virtual override of platform.h i
Alexei Svitkine (slow) 2015/04/08 17:53:50 Fair enough.
163 virtual void recordRapporURL(const char* metric, const blink::WebURL& url);
162 164
163 // Set the PlatformEventObserverBase in |platform_event_observers_| associated 165 // Set the PlatformEventObserverBase in |platform_event_observers_| associated
164 // with |type| to |observer|. If there was already an observer associated to 166 // with |type| to |observer|. If there was already an observer associated to
165 // the given |type|, it will be replaced. 167 // the given |type|, it will be replaced.
166 // Note that |observer| will be owned by this object after the call. 168 // Note that |observer| will be owned by this object after the call.
167 void SetPlatformEventObserverForTesting( 169 void SetPlatformEventObserverForTesting(
168 blink::WebPlatformEventType type, 170 blink::WebPlatformEventType type,
169 scoped_ptr<PlatformEventObserverBase> observer); 171 scoped_ptr<PlatformEventObserverBase> observer);
170 172
171 // Disables the WebSandboxSupport implementation for testing. 173 // Disables the WebSandboxSupport implementation for testing.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 device::VibrationManagerPtr vibration_manager_; 263 device::VibrationManagerPtr vibration_manager_;
262 264
263 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 265 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
264 266
265 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 267 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
266 }; 268 };
267 269
268 } // namespace content 270 } // namespace content
269 271
270 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 272 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698