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

Unified Diff: chrome/browser/page_info_window.h

Issue 159521: Implementation of the page info dialog on Linux Gtk. (Closed)
Patch Set: Fix build Created 11 years, 5 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
« no previous file with comments | « chrome/browser/page_info_model.cc ('k') | chrome/browser/page_info_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_info_window.h
diff --git a/chrome/browser/page_info_window.h b/chrome/browser/page_info_window.h
index c39bd381215f51ca60daceb395525919fb1fccd9..737c8843bc926a41b2ad3c98abbd8709b5a20456 100644
--- a/chrome/browser/page_info_window.h
+++ b/chrome/browser/page_info_window.h
@@ -1,80 +1,28 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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_PAGE_INFO_WINDOW_H__
-#define CHROME_BROWSER_PAGE_INFO_WINDOW_H__
+#ifndef CHROME_BROWSER_PAGE_INFO_WINDOW_H_
+#define CHROME_BROWSER_PAGE_INFO_WINDOW_H_
#include "base/gfx/native_widget_types.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
-#include "googleurl/src/gurl.h"
-#include "net/base/x509_certificate.h"
-// The page info window displays information regarding the current page,
-// including security information.
-
-class NavigationEntry;
-class PageInfoContentView;
-class PrefService;
class Profile;
+class GURL;
-class PageInfoWindow {
- public:
- enum TabID {
- GENERAL = 0,
- SECURITY,
- };
-
- // Factory method to get a new platform impl of PageInfoWindow
- static PageInfoWindow* Factory();
-
- // Creates and shows a new page info window for the main page.
- static void CreatePageInfo(Profile* profile,
- NavigationEntry* nav_entry,
- gfx::NativeView parent,
- TabID tab);
-
- // Creates and shows a new page info window for the frame at |url| with the
- // specified SSL information.
- static void CreateFrameInfo(Profile* profile,
- const GURL& url,
- const NavigationEntry::SSLStatus& ssl,
- gfx::NativeView parent,
- TabID tab);
-
- static void RegisterPrefs(PrefService* prefs);
-
- PageInfoWindow();
- virtual ~PageInfoWindow();
-
- // This is the main initializer that creates the window.
- virtual void Init(Profile* profile,
- const GURL& url,
- const NavigationEntry::SSLStatus& ssl,
- NavigationEntry::PageType page_type,
- bool show_history,
- gfx::NativeView parent) = 0;
-
- // Brings the page info window to the foreground.
- virtual void Show() = 0;
-
- // Shows various information for the specified certificate in a new dialog.
- // This can be implemented as an individual window (like on Windows), or as
- // a modal dialog/sheet (on Mac). Either will work since we're only expecting
- // one certificate per page.
- virtual void ShowCertDialog(int cert_id) = 0;
-
- protected:
- // Returns a name that can be used to represent the issuer. It tries in this
- // order CN, O and OU and returns the first non-empty one found.
- static std::string GetIssuerName(
- const net::X509Certificate::Principal& issuer);
+namespace browser {
- // The id of the server cert for this page (0 means no cert).
- int cert_id_;
+// Shows the page info using the specified information.
+// |url| is the url of the page/frame the info applies to, |ssl| is the SSL
+// information for that page/frame. If |show_history| is true, a section
+// showing how many times that URL has been visited is added to the page info.
+void ShowPageInfo(gfx::NativeWindow parent,
+ Profile* profile,
+ const GURL& url,
+ const NavigationEntry::SSLStatus& ssl,
+ bool show_history);
- private:
- DISALLOW_COPY_AND_ASSIGN(PageInfoWindow);
-};
+} // namespace browser
-#endif // #define CHROME_BROWSER_PAGE_INFO_WINDOW_H__
+#endif // CHROME_BROWSER_PAGE_INFO_WINDOW_H_
« no previous file with comments | « chrome/browser/page_info_model.cc ('k') | chrome/browser/page_info_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698