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

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

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit test debugging Created 5 years 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"
12 #include "chrome/browser/translate/chrome_translate_client.h" 11 #include "chrome/browser/translate/chrome_translate_client.h"
13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
14 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 14 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
16 #include "chrome/browser/ui/host_desktop.h" 15 #include "chrome/browser/ui/host_desktop.h"
17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
18 #include "components/content_settings/core/common/content_settings_types.h" 17 #include "components/content_settings/core/common/content_settings_types.h"
18 #include "components/security_state/security_state_model.h"
19 #include "components/signin/core/browser/signin_header_helper.h" 19 #include "components/signin/core/browser/signin_header_helper.h"
20 #include "components/translate/core/common/translate_errors.h" 20 #include "components/translate/core/common/translate_errors.h"
21 #include "ui/base/base_window.h" 21 #include "ui/base/base_window.h"
22 #include "ui/base/window_open_disposition.h" 22 #include "ui/base/window_open_disposition.h"
23 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
24 24
25 class Browser; 25 class Browser;
26 class DownloadShelf; 26 class DownloadShelf;
27 class ExclusiveAccessContext; 27 class ExclusiveAccessContext;
28 class FindBar; 28 class FindBar;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 virtual void UserChangedTheme() = 0; 303 virtual void UserChangedTheme() = 0;
304 304
305 // Shows the website settings using the specified information. |url| is the 305 // Shows the website settings using the specified information. |url| is the
306 // url of the page/frame the info applies to, |ssl| is the SSL information for 306 // url of the page/frame the info applies to, |ssl| is the SSL information for
307 // that page/frame. If |show_history| is true, a section showing how many 307 // that page/frame. If |show_history| is true, a section showing how many
308 // times that URL has been visited is added to the page info. 308 // times that URL has been visited is added to the page info.
309 virtual void ShowWebsiteSettings( 309 virtual void ShowWebsiteSettings(
310 Profile* profile, 310 Profile* profile,
311 content::WebContents* web_contents, 311 content::WebContents* web_contents,
312 const GURL& url, 312 const GURL& url,
313 const SecurityStateModel::SecurityInfo& security_info) = 0; 313 const security_state::SecurityStateModel::SecurityInfo&
314 security_info) = 0;
314 315
315 // Shows the app menu (for accessibility). 316 // Shows the app menu (for accessibility).
316 virtual void ShowAppMenu() = 0; 317 virtual void ShowAppMenu() = 0;
317 318
318 // Allows the BrowserWindow object to handle the specified keyboard event 319 // Allows the BrowserWindow object to handle the specified keyboard event
319 // before sending it to the renderer. 320 // before sending it to the renderer.
320 // Returns true if the |event| was handled. Otherwise, if the |event| would 321 // Returns true if the |event| was handled. Otherwise, if the |event| would
321 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 322 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
322 // |*is_keyboard_shortcut| should be set to true. 323 // |*is_keyboard_shortcut| should be set to true.
323 virtual bool PreHandleKeyboardEvent( 324 virtual bool PreHandleKeyboardEvent(
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Returns object implementing ExclusiveAccessContext interface. 408 // Returns object implementing ExclusiveAccessContext interface.
408 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; 409 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0;
409 410
410 protected: 411 protected:
411 friend class BrowserCloseManager; 412 friend class BrowserCloseManager;
412 friend class BrowserView; 413 friend class BrowserView;
413 virtual void DestroyBrowser() = 0; 414 virtual void DestroyBrowser() = 0;
414 }; 415 };
415 416
416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 417 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698