Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chrome_web_contents_handler.h
blob7e1d32c56843fd4a720bef1c69632ef1947dfb6e
1 // Copyright (c) 2012 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_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
11 class ChromeWebContentsHandler
12 : public ui::WebDialogWebContentsDelegate::WebContentsHandler {
13 public:
14 ChromeWebContentsHandler();
15 virtual ~ChromeWebContentsHandler();
17 // Overridden from WebDialogWebContentsDelegate::WebContentsHandler:
18 virtual content::WebContents* OpenURLFromTab(
19 content::BrowserContext* context,
20 content::WebContents* source,
21 const content::OpenURLParams& params) OVERRIDE;
22 virtual void AddNewContents(content::BrowserContext* context,
23 content::WebContents* source,
24 content::WebContents* new_contents,
25 WindowOpenDisposition disposition,
26 const gfx::Rect& initial_pos,
27 bool user_gesture) OVERRIDE;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsHandler);
33 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_CONTENTS_HANDLER_H_