summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_protocol/external_protocol_observer.h
blob: dad04b4a4ea75b80c8566a83440c90ba3bb778fb (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
26
// 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_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_
#define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_

#include "content/browser/tab_contents/tab_contents_observer.h"

class TabContents;

// ExternalProtocolObserver is responsible for handling messages from
// TabContents relating to external protocols.
class ExternalProtocolObserver : public TabContentsObserver {
 public:
  explicit ExternalProtocolObserver(TabContents* tab_contents);
  virtual ~ExternalProtocolObserver();

  // TabContentsObserver overrides.
  virtual void DidGetUserGesture() OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(ExternalProtocolObserver);
};

#endif  // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_