OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file defines utility functions for working with strings. | 5 // This file defines utility functions for working with strings. |
6 | 6 |
7 #ifndef CHROME_BROWSER_SHELL_DEBUGGER_CONTENTS_H__ | 7 #ifndef CHROME_BROWSER_SHELL_DEBUGGER_CONTENTS_H__ |
8 #define CHROME_BROWSER_SHELL_DEBUGGER_CONTENTS_H__ | 8 #define CHROME_BROWSER_SHELL_DEBUGGER_CONTENTS_H__ |
9 | 9 |
10 #include "chrome/browser/dom_ui/dom_ui_host.h" | 10 #include "chrome/browser/dom_ui/dom_ui.h" |
11 | 11 |
12 class DebuggerContents : public DOMUIHost { | 12 class DebuggerContents : public DOMUI { |
13 public: | 13 public: |
14 DebuggerContents(Profile* profile, SiteInstance* instance); | 14 DebuggerContents(DOMUIContents* contents); |
| 15 |
| 16 // DOMUI Implementation |
| 17 virtual void Init(); |
| 18 |
| 19 // Return the URL for the front page of this UI. |
| 20 static GURL GetBaseURL(); |
15 | 21 |
16 static bool IsDebuggerUrl(const GURL& url); | 22 static bool IsDebuggerUrl(const GURL& url); |
17 | 23 |
18 protected: | 24 protected: |
| 25 DOMUIContents* contents_; |
| 26 |
19 // WebContents overrides: | 27 // WebContents overrides: |
20 // We override updating history with a no-op so these pages | 28 // We override updating history with a no-op so these pages |
21 // are not saved to history. | 29 // are not saved to history. |
22 virtual void UpdateHistoryForNavigation(const GURL& url, | 30 virtual void UpdateHistoryForNavigation(const GURL& url, |
23 const ViewHostMsg_FrameNavigate_Params& params) { } | 31 const ViewHostMsg_FrameNavigate_Params& params) { } |
24 | 32 |
25 // DOMUIHost implementation. | |
26 virtual void AttachMessageHandlers(); | |
27 | |
28 DISALLOW_EVIL_CONSTRUCTORS(DebuggerContents); | 33 DISALLOW_EVIL_CONSTRUCTORS(DebuggerContents); |
29 }; | 34 }; |
30 | 35 |
31 #endif // CHROME_BROWSER_DEBUGGER_CONTENTS_H__ | 36 #endif // CHROME_BROWSER_DEBUGGER_CONTENTS_H__ |
32 | 37 |
OLD | NEW |