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

Side by Side Diff: chrome/browser/download/download_request_limiter_observer.cc

Issue 7660007: Factor out dependncy on download throttling from core download code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/download/download_request_limiter_observer.h"
6
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/download/download_request_limiter.h"
9
10 DownloadRequestLimiterObserver::DownloadRequestLimiterObserver(
11 TabContents* tab_contents)
12 : TabContentsObserver(tab_contents) {
13 }
14
15 DownloadRequestLimiterObserver::~DownloadRequestLimiterObserver() {
16 }
17
18 void DownloadRequestLimiterObserver::DidGetUserGesture() {
19 if (!g_browser_process->download_request_limiter())
20 return; // NULL in unitests.
21 g_browser_process->download_request_limiter()->OnUserGesture(tab_contents());
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698