Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2687)

Unified Diff: chrome/browser/ui/webui/web_dialog_web_contents_delegate.h

Issue 10214001: WebDialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/web_dialog_web_contents_delegate.h
===================================================================
--- chrome/browser/ui/webui/web_dialog_web_contents_delegate.h (revision 133680)
+++ chrome/browser/ui/webui/web_dialog_web_contents_delegate.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
-#define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
+#define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
#pragma once
#include "base/compiler_specific.h"
@@ -13,11 +13,11 @@
class Profile;
// This class implements (and mostly ignores) most of
-// content::WebContentsDelegate for use in an HTML dialog. Subclasses need only
+// content::WebContentsDelegate for use in a Web dialog. Subclasses need only
// override a few methods instead of the everything from
// content::WebContentsDelegate; this way, implementations on all platforms
// behave consistently.
-class HtmlDialogTabContentsDelegate : public content::WebContentsDelegate {
+class WebDialogWebContentsDelegate : public content::WebContentsDelegate {
public:
// Opens a new URL inside |source| (if source is NULL open in the current
// front-most tab). |profile| is the profile that the browser should be owened
@@ -43,9 +43,9 @@
bool user_gesture);
// Profile must be non-NULL.
- explicit HtmlDialogTabContentsDelegate(Profile* profile);
+ explicit WebDialogWebContentsDelegate(Profile* profile);
- virtual ~HtmlDialogTabContentsDelegate();
+ virtual ~WebDialogWebContentsDelegate();
// The returned profile is guaranteed to be original if non-NULL.
Profile* profile() const;
@@ -73,6 +73,8 @@
private:
Profile* profile_; // Weak pointer. Always an original profile.
+
+ DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate);
};
-#endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
+#endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/webui/web_dialog_ui.cc ('k') | chrome/browser/ui/webui/web_dialog_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698