OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
Avi (use Gerrit)
2014/05/20 14:41:39
No (c)
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_RESOURCE_THROTTLE_H_ | |
6 #define CHROME_BROWSER_RESOURCE_THROTTLE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | |
11 #include "content/public/browser/web_contents_observer.h" | |
12 #include "content/public/browser/web_contents_user_data.h" | |
13 | |
14 class ResourceThrottle | |
tonyg
2014/05/20 14:14:52
Kari and I have been talking a lot about how to so
aiolos (Not reviewing)
2014/05/20 17:45:23
I agree with Tony that you'll want to move this to
| |
15 : public content::WebContentsUserData<ResourceThrottle>, | |
16 content::WebContentsObserver, | |
17 MediaCaptureDevicesDispatcher::Observer { | |
18 public: | |
19 virtual ~ResourceThrottle(); | |
20 | |
21 // From WebContentsObserver . | |
Avi (use Gerrit)
2014/05/20 14:41:39
Why the space before the .? (here and below too)
| |
22 virtual void WasShown() OVERRIDE; | |
23 virtual void WasHidden() OVERRIDE; | |
24 | |
25 // From MediaCaptureDevicesDispatcher::Observer . | |
26 virtual void OnCreatingAudioStream(int render_process_id, | |
27 int render_frame_id) OVERRIDE; | |
28 | |
29 private: | |
30 void SetTimerCoalescingEnabled(bool enabled); | |
31 | |
32 explicit ResourceThrottle(content::WebContents* contents); | |
33 friend class content::WebContentsUserData<ResourceThrottle>; | |
34 | |
35 content::WebContents* contents_; | |
36 bool timer_coalescing_enabled_; | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_RESOURCE_THROTTLE_H_ | |
OLD | NEW |