Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / external_protocol / external_protocol_observer.h
blobc4b7b26d231dbd936a5a9605ac546f0dadf1e3b6
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.
5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_
6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_
8 #include "content/public/browser/web_contents_observer.h"
9 #include "content/public/browser/web_contents_user_data.h"
11 // ExternalProtocolObserver is responsible for handling messages from
12 // WebContents relating to external protocols.
13 class ExternalProtocolObserver
14 : public content::WebContentsObserver,
15 public content::WebContentsUserData<ExternalProtocolObserver> {
16 public:
17 virtual ~ExternalProtocolObserver();
19 // content::WebContentsObserver overrides.
20 virtual void DidGetUserGesture() OVERRIDE;
22 private:
23 explicit ExternalProtocolObserver(content::WebContents* web_contents);
24 friend class content::WebContentsUserData<ExternalProtocolObserver>;
26 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolObserver);
29 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_OBSERVER_H_