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

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

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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
7
8 #include "content/browser/tab_contents/tab_contents_observer.h"
9
10 class TabContents;
11
12 // Watches for user gesture notifications.
13 class DownloadRequestLimiterObserver : public TabContentsObserver {
Paweł Hajdan Jr. 2011/08/16 17:14:08 Why don't you just make DownloadRequestLimiter a T
jam 2011/08/16 18:18:20 An object can only watch one tab at a time.
14 public:
15 explicit DownloadRequestLimiterObserver(TabContents* tab_contents);
16 virtual ~DownloadRequestLimiterObserver();
17
18 // TabContentsObserver overrides.
19 virtual void DidGetUserGesture() OVERRIDE;
20
21 private:
22 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiterObserver);
23 };
24
25 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698