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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 1314953009: Refactor WebsiteSettings to operate on a SecurityInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/signin/chrome_signin_helper.h" 10 #include "chrome/browser/signin/chrome_signin_helper.h"
11 #include "chrome/browser/ssl/security_state_model.h"
11 #include "chrome/browser/translate/chrome_translate_client.h" 12 #include "chrome/browser/translate/chrome_translate_client.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
13 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
15 #include "chrome/browser/ui/host_desktop.h" 16 #include "chrome/browser/ui/host_desktop.h"
16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
17 #include "components/content_settings/core/common/content_settings_types.h" 18 #include "components/content_settings/core/common/content_settings_types.h"
18 #include "components/signin/core/browser/signin_header_helper.h" 19 #include "components/signin/core/browser/signin_header_helper.h"
19 #include "components/translate/core/common/translate_errors.h" 20 #include "components/translate/core/common/translate_errors.h"
20 #include "ui/base/base_window.h" 21 #include "ui/base/base_window.h"
(...skipping 11 matching lines...) Expand all
32 class ProfileResetGlobalError; 33 class ProfileResetGlobalError;
33 class StatusBubble; 34 class StatusBubble;
34 class TemplateURL; 35 class TemplateURL;
35 class ToolbarActionsBar; 36 class ToolbarActionsBar;
36 37
37 struct WebApplicationInfo; 38 struct WebApplicationInfo;
38 39
39 namespace content { 40 namespace content {
40 class WebContents; 41 class WebContents;
41 struct NativeWebKeyboardEvent; 42 struct NativeWebKeyboardEvent;
42 struct SSLStatus;
43 } 43 }
44 44
45 namespace extensions { 45 namespace extensions {
46 class Command; 46 class Command;
47 class Extension; 47 class Extension;
48 } 48 }
49 49
50 namespace gfx { 50 namespace gfx {
51 class Rect; 51 class Rect;
52 class Size; 52 class Size;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 const base::Callback<void(bool)>& callback) = 0; 303 const base::Callback<void(bool)>& callback) = 0;
304 304
305 // ThemeService calls this when a user has changed his or her theme, 305 // ThemeService calls this when a user has changed his or her theme,
306 // indicating that it's time to redraw everything. 306 // indicating that it's time to redraw everything.
307 virtual void UserChangedTheme() = 0; 307 virtual void UserChangedTheme() = 0;
308 308
309 // Shows the website settings using the specified information. |url| is the 309 // Shows the website settings using the specified information. |url| is the
310 // url of the page/frame the info applies to, |ssl| is the SSL information for 310 // url of the page/frame the info applies to, |ssl| is the SSL information for
311 // that page/frame. If |show_history| is true, a section showing how many 311 // that page/frame. If |show_history| is true, a section showing how many
312 // times that URL has been visited is added to the page info. 312 // times that URL has been visited is added to the page info.
313 virtual void ShowWebsiteSettings(Profile* profile, 313 virtual void ShowWebsiteSettings(
314 content::WebContents* web_contents, 314 Profile* profile,
315 const GURL& url, 315 content::WebContents* web_contents,
316 const content::SSLStatus& ssl) = 0; 316 const GURL& url,
317 const SecurityStateModel::SecurityInfo& security_info) = 0;
317 318
318 // Shows the app menu (for accessibility). 319 // Shows the app menu (for accessibility).
319 virtual void ShowAppMenu() = 0; 320 virtual void ShowAppMenu() = 0;
320 321
321 // Allows the BrowserWindow object to handle the specified keyboard event 322 // Allows the BrowserWindow object to handle the specified keyboard event
322 // before sending it to the renderer. 323 // before sending it to the renderer.
323 // Returns true if the |event| was handled. Otherwise, if the |event| would 324 // Returns true if the |event| was handled. Otherwise, if the |event| would
324 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 325 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
325 // |*is_keyboard_shortcut| should be set to true. 326 // |*is_keyboard_shortcut| should be set to true.
326 virtual bool PreHandleKeyboardEvent( 327 virtual bool PreHandleKeyboardEvent(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Returns object implementing ExclusiveAccessContext interface. 396 // Returns object implementing ExclusiveAccessContext interface.
396 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; 397 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0;
397 398
398 protected: 399 protected:
399 friend class BrowserCloseManager; 400 friend class BrowserCloseManager;
400 friend class BrowserView; 401 friend class BrowserView;
401 virtual void DestroyBrowser() = 0; 402 virtual void DestroyBrowser() = 0;
402 }; 403 };
403 404
404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 405 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698