blob: d5d6135cb7db92daf0cb0ca400ea518f9bb1378f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 {
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_
|