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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_request_limiter_observer.h
===================================================================
--- chrome/browser/download/download_request_limiter_observer.h (revision 0)
+++ chrome/browser/download/download_request_limiter_observer.h (revision 0)
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
+#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
+
+#include "content/browser/tab_contents/tab_contents_observer.h"
+
+class TabContents;
+
+// Watches for user gesture notifications.
+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.
+ public:
+ explicit DownloadRequestLimiterObserver(TabContents* tab_contents);
+ virtual ~DownloadRequestLimiterObserver();
+
+ // TabContentsObserver overrides.
+ virtual void DidGetUserGesture() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiterObserver);
+};
+
+#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_OBSERVER_H_
Property changes on: chrome\browser\download\download_request_limiter_observer.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698